Skip to content

Commit

Permalink
Drop unnecessary target check
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Oct 4, 2019
1 parent 189fef1 commit c8c6839
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/cargo/core/compiler/build_context/target_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,10 @@ impl TargetInfo {

// See rust-lang/cargo#4535.
if target_triple.starts_with("wasm32-") && crate_type == "bin" && suffix == ".js" {
let flavor = if target_triple.contains("emscripten") {
FileFlavor::Auxiliary
} else {
FileFlavor::Normal
};
ret.push(FileType {
suffix: ".wasm".to_string(),
prefix: prefix.clone(),
flavor,
flavor: FileFlavor::Auxiliary,
should_replace_hyphens: true,
})
}
Expand Down

0 comments on commit c8c6839

Please sign in to comment.