summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-09-12 14:53:19 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-09-21 12:10:59 -0700
commitd070100c8c0529db984b4cb10de745e762b9199a (patch)
tree13d57ae47031360901ce56d687b483aff9a4643b /test cases
parent2f6702839e9f1c109230ace33e997b4d06663479 (diff)
downloadmeson-d070100c8c0529db984b4cb10de745e762b9199a.tar.gz
link_whole should be considered a source for targets
Currently sources, generated sources, or objects are considered to be sources for a target, but link_whole should also fulfill the sources requirement. Fixes #2180
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/145 whole archive/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/common/145 whole archive/meson.build b/test cases/common/145 whole archive/meson.build
index eadebf8bd..6689c3c40 100644
--- a/test cases/common/145 whole archive/meson.build
+++ b/test cases/common/145 whole archive/meson.build
@@ -20,3 +20,10 @@ exe = executable('prog', 'prog.c',
test('prog', exe)
+# link_whole only
+static = static_library('static', 'dylib.c')
+dylib2 = shared_library('link_whole', link_whole : [stlib, static])
+
+exe2 = executable('prog2', 'prog.c', link_with : dylib2)
+
+test('prog2', exe2)