compilers/detect: use linker_always_args as well as linker exe_list

Otherwise we don't get critical arguments like -fuse=lld.
pull/8773/head
Dylan Baker 4 years ago
parent 4f45b5937d
commit 6ca732991d
  1. 2
      mesonbuild/compilers/detect.py

@ -980,7 +980,7 @@ def detect_rust_compiler(env: 'Environment', for_machine: MachineChoice) -> Rust
extra_args['direct'] = True
extra_args['machine'] = cc.linker.machine
else:
exelist = cc.linker.exelist.copy()
exelist = cc.linker.exelist + cc.linker.get_always_args()
if 'ccache' in exelist[0]:
del exelist[0]
c = exelist.pop(0)

Loading…
Cancel
Save