Open amyspark opened 1 year ago
msvc compiler accepts /LN
and /link
options.
msvc linker accepts /LARGEADDRESSAWARE
, /LIBPATH
, /LINKREPRO
, /LINKREPROTARGET
, /LTCG
, /LTCGOUT
options.
we should probably also check for options beginning with /I
...
Describe the bug
The
/LINKREPRO:xxx
flag is needed to compile a linker test case for Microsoft.However, specifying it with a dash (
-Dcpp_link_args=-LINKREPRO:msvc
orcpp_link_args: '-LINKREPRO:MSVC'
) results in Meson thinking it's a library link flag, so it gets mangled intoLINK_ARGS = "/LIBPATH:INKREPRO:MSVC"
.To Reproduce
meson.build:
srcs/spede.cpp
Expected behavior
Compilation should succeed once the MSVC folder is created in the
build
folder.system parameters
meson --version
1.0.1ninja --version
if it's a Ninja build 1.10.2