Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo_shim: Correctly compute path for wasm32-unknown-emscripten #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cargo_shim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,10 @@ impl BuildConfig {
let wasm_path = {
let main_artifact = Path::new( &artifacts[ artifact_index ].filenames[ filename_index ] );
let filename = main_artifact.file_name().unwrap();
main_artifact.parent().unwrap().join( "deps" ).join( filename ).with_extension( "wasm" )
main_artifact.parent().unwrap().join( filename ).with_extension( "wasm" )
};

assert!( wasm_path.exists(), "internal error: wasm doesn't exist where I expected it to be" );
assert!(wasm_path.exists(), "internal error: wasm doesn't exist at {:?}", wasm_path);
artifacts[ artifact_index ].filenames.push( wasm_path.to_str().unwrap().to_owned() );
debug!( "Found `.wasm` test artifact: {:?}", wasm_path );
}
Expand Down