Skip to content

Commit 8e09f42

Browse files
committed
Update Emscripten's no_default_libraries handling
1 parent 72fd41a commit 8e09f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ impl<'a> Linker for EmLinker<'a> {
11401140
fn no_crt_objects(&mut self) {}
11411141

11421142
fn no_default_libraries(&mut self) {
1143-
self.cmd.args(&["-s", "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]"]);
1143+
self.cmd.arg("-nodefaultlibs");
11441144
}
11451145

11461146
fn export_symbols(&mut self, _tmpdir: &Path, _crate_type: CrateType, symbols: &[String]) {

0 commit comments

Comments
 (0)