Skip to content

Commit

Permalink
Use absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
halfprice committed Jul 24, 2024
1 parent 1325d3d commit 57efa0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/sui-proc-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ pub fn init_static_initializers(_args: TokenStream, item: TokenStream) -> TokenS
use sui_simulator::move_package::package_hooks::register_package_hooks;

register_package_hooks(Box::new(SuiPackageHooks {}));
let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
path.push(env!("SIMTEST_STATIC_INIT_MOVE"));
let mut path = PathBuf::from(env!("SIMTEST_STATIC_INIT_MOVE"));
let mut build_config = BuildConfig::default();

build_config.config.install_dir = Some(TempDir::new().unwrap().into_path());
Expand Down
3 changes: 2 additions & 1 deletion scripts/simtest/cargo-simtest
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export TMPDIR=$(mktemp -d)

# Set the example move package for the simtest static initializer
# https://github.com/MystenLabs/sui/blob/7bc276d534c6c758ac2cfefe96431c2b1318ca01/crates/sui-proc-macros/src/lib.rs#L52
export SIMTEST_STATIC_INIT_MOVE="../../examples/move/basics"
root_dir=$(git rev-parse --show-toplevel)
export SIMTEST_STATIC_INIT_MOVE=$root_dir"/examples/move/basics"

cargo ${CARGO_COMMAND[@]} \
--config "build.rustflags = [$RUST_FLAGS]" \
Expand Down

0 comments on commit 57efa0f

Please sign in to comment.