Skip to content

Commit c8c6839

Browse files
committed
Drop unnecessary target check
1 parent 189fef1 commit c8c6839

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/cargo/core/compiler/build_context/target_info.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,10 @@ impl TargetInfo {
255255

256256
// See rust-lang/cargo#4535.
257257
if target_triple.starts_with("wasm32-") && crate_type == "bin" && suffix == ".js" {
258-
let flavor = if target_triple.contains("emscripten") {
259-
FileFlavor::Auxiliary
260-
} else {
261-
FileFlavor::Normal
262-
};
263258
ret.push(FileType {
264259
suffix: ".wasm".to_string(),
265260
prefix: prefix.clone(),
266-
flavor,
261+
flavor: FileFlavor::Auxiliary,
267262
should_replace_hyphens: true,
268263
})
269264
}

0 commit comments

Comments
 (0)