The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
441 B
13 lines
441 B
project('as-needed test', 'cpp') |
|
|
|
# Idea behind this test is to have -Wl,--as-needed prune |
|
# away unneeded linkages, which would otherwise cause global |
|
# static initialiser side-effects to set a boolean to true. |
|
|
|
# Credits for portable ISO C++ idea go to sarum9in |
|
|
|
libA = library('A', 'libA.cpp') |
|
libB = library('B', 'libB.cpp', link_with : libA) |
|
|
|
main_exe = executable('C', 'main.cpp', link_with : [libA, libB]) |
|
test('main test', main_exe)
|
|
|