Discard swiftc linker detect output

"swiftc -Xlinker -v tmp.swift" command used to detect swift linker
creates junk files in working directory. This fix forwards output to
/dev/null
pull/13596/head
slimeuniverse 3 months ago committed by Jussi Pakkanen
parent df70680723
commit 45db23394f
  1. 2
      mesonbuild/compilers/detect.py

@ -1248,7 +1248,7 @@ def detect_swift_compiler(env: 'Environment', for_machine: MachineChoice) -> Com
cls = SwiftCompiler
linker = guess_nix_linker(env,
exelist, cls, version, for_machine,
extra_args=[f.name])
extra_args=[f.name, '-o /dev/null'])
return cls(
exelist, version, for_machine, is_cross, info, linker=linker)

Loading…
Cancel
Save