diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 72a3533ac..0a95f90dd 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, '-o /dev/null']) + extra_args=[f.name, '-o', '/dev/null']) return cls( exelist, version, for_machine, is_cross, info, linker=linker)