File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,26 @@ def overrides_for_target(rctx, triple):
359
359
overrides = {
360
360
"omit_hosted_linker_flags" : True ,
361
361
"omit_cxx_stdlib_flag" : True ,
362
+
363
+ # libtool doesn't seem to be able to handle wasm
362
364
"use_llvm_ar_instead_of_libtool_on_macos" : True ,
365
+
366
+ # lld ultimately shells out to `wasm-ld` which does *not* support
367
+ # start end groups for libraries which is why this override is
368
+ # important
369
+ "custom_linker_tool" : "wasm-ld" ,
370
+
371
+ # wasm-ld doesn't understand `-l:libfoo.a` style syntax unfortunately
372
+ "prefer_static_cxx_libs_on_linux_hosts" : False ,
373
+
374
+ # not yet supported on wasm; see: https://github.com/WebAssembly/tool-conventions/issues/133
375
+ "linker_include_build_id_on_linux_hosts" : False ,
376
+
377
+ # not support by `wasm-ld`:
378
+ "linker_use_gnu_hash_style_on_linux_hosts" : False ,
379
+
380
+ # not applicable for wasm (we're not dynamically linking):
381
+ "linker_use_elf_hardening_so_flags_on_linux_hosts" : False ,
363
382
}
364
383
365
384
# `clang-12` specifically uses `-mthread-model posix` by default
You can’t perform that action at this time.
0 commit comments