aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib/universal.py
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-05-26 16:55:35 +0800
committerDylan Baker <dylan@pnwbakers.com>2021-05-27 09:54:37 -0700
commitbbb6f2c51ce2c5d6a6dffa720dc5cdd1ddf1fb50 (patch)
tree0ed80aae372a09d5a2af332990a33ec0769d7e33 /mesonbuild/mesonlib/universal.py
parentb9b73b65a791f42732f128bcfa02640be8826a3a (diff)
downloadmeson-bbb6f2c51ce2c5d6a6dffa720dc5cdd1ddf1fb50.zip
meson-bbb6f2c51ce2c5d6a6dffa720dc5cdd1ddf1fb50.tar.gz
meson-bbb6f2c51ce2c5d6a6dffa720dc5cdd1ddf1fb50.tar.bz2
ninjabackend.py: Implement `link_whole:` for pre-VS2015
...Update 2, to be exact, since the Visual Studio linker only gained the `/WHOLEARCHIVE:` feature since Visual Studio 2015 Update 2. This checks whether we have the corresponding `cl.exe` which is versioned at or after Visual Studio 2015 Update 2 before we try to apply the `/WHOLEARCHIVE:xxx` linker flag. If we aren't, use built-in methods in Meson to grab the object files of the dependent static lib's, along with the objects that were `link_whole:`'ed into them, and feed this list into the linker instead. This would make `link_whole:` work on Visual Studio 2015 Update 1 and earlier, including previous Visual Studio versions.
Diffstat (limited to 'mesonbuild/mesonlib/universal.py')
0 files changed, 0 insertions, 0 deletions