Describe the bug
When using clang with the GNU frontend (i. e. clang.exenotclang-cl.exe) and a DEF file on Windows, meson generates the wrong linker flags for link.exe.
I now run:
meson setup --buildtype debugoptimized build-msvc-release
with the environment:
CC=clang
And compile the project, I see the following output:
Expected behavior
I would expect this to build without error.
The problem is that for link.exe the def file needs to be passed with the /DEF: flag.
Currently it is passed without /DEF: so it is treated by link.exe as a regular object file, which causes the error
Describe the bug When using clang with the GNU frontend (i. e.
clang.exe
notclang-cl.exe
) and a DEF file on Windows, meson generates the wrong linker flags for link.exe.To Reproduce meson.build:
lib.c:
lib.def:
I now run:
meson setup --buildtype debugoptimized build-msvc-release
with the environment:CC=clang
And compile the project, I see the following output:Expected behavior I would expect this to build without error. The problem is that for link.exe the def file needs to be passed with the
/DEF:
flag. Currently it is passed without/DEF:
so it is treated by link.exe as a regular object file, which causes the errorsystem parameters