summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorslimeuniverse <hordiichuk.oleksii@gmail.com>2024-08-23 17:23:20 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-08-23 22:45:26 +0300
commit45db23394f2dc5e26050c2ede76be79c70f50ca5 (patch)
tree17f83933a32f6047bd2bdecbb3fc02a59c41b523 /mesonbuild/compilers
parentdf706807239095ddbbfd2975b3fe067ad6b5d535 (diff)
downloadmeson-45db23394f2dc5e26050c2ede76be79c70f50ca5.tar.gz
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
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py
index 2e6b88dfc..72a3533ac 100644
--- a/mesonbuild/compilers/detect.py
+++ b/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)