Swift Linker Check Error
Sirtsu55 opened this issue · comments
Srijan Dhungana commented
Describe the bug
Meson project with swift fails to configure when checking for swift's linker. This leads to not being able to build any projects with swift on Windows.
To Reproduce
meson.build:
project('testing', 'swift')
Nothing more is needed, using v1.4.1.
Outputs:
The Meson build system
Version: 1.4.1
Source dir: C:\Users\X\source\repos\swifttest
Build dir: C:\Users\X\source\repos\swifttest\builddir
Build type: native build
Project name: testing
Project version: undefined
meson.build:2:0: ERROR: Unable to detect linker for compiler `swiftc -Xlinker --version C:\Users\X\AppData\Local\Temp\tmpitzafl3u.swift`
stdout:
stderr: LINK : warning LNK4044: unrecognized option '/-version'; ignored
Creating library tmpitzafl3u.lib and object tmpitzafl3u.exp
Expected behavior
It should not fail when checking for linker.
system parameters
- Native Build
- Windows 11
- Meson
.msi
installed executable - Meson Version: 1.4.1
- Swift Version 5.10.1