Open H5117 opened 2 weeks ago
Works for me, added a unit test: https://github.com/mesonbuild/meson/pull/13896. Can you reproduce the issue with that test?
The test does not work on Windows:
if host_machine.system() == 'windows'
error('MESON_SKIP_TEST: The fake configure script is too dumb to work on Windows')
endif
But will try to remove this check.
@H5117 Note that the root issue you have is Meson should give the proper linker by default on Windows. There is even a FIXME about it: https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/external_project.py#L156. Improvements for Windows users is welcome :)
Seems another issue should be fixed first.
Describe the bug I try to build an Autotools subproject with the
external_project
module and MSVC 2022. To make this work I need to pass the environment variableLD
to theconfigure
script, but the optionenv:
ofadd_project()
does not work for some reason.To Reproduce minimal_example.zip
Expected behavior The environment variable
LD
is set tolink
.system parameters
meson --version
= 1.6.0ninja --version
= 1.11.0