aboutsummaryrefslogtreecommitdiff
path: root/test cases/vala
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-10-21 07:38:32 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-10-21 08:00:39 +0530
commit57ce7d461877b2ad8da4f4712879880148759bc6 (patch)
treef6fcf145a32ad4f7cdc1022e5c441c5b91db9ddb /test cases/vala
parent9c9c5ab2a878a32c7f1e2855596caac1122b5bf5 (diff)
downloadmeson-57ce7d461877b2ad8da4f4712879880148759bc6.zip
meson-57ce7d461877b2ad8da4f4712879880148759bc6.tar.gz
meson-57ce7d461877b2ad8da4f4712879880148759bc6.tar.bz2
Add support for extracting objects in unity builds
Not only does extract_all_objects() now work properly again, extract_objects() also works if you specify a subset of sources all of which have been compiled into a single unified object. So, for instance, this allows you to extract all the objects corresponding to the C sources compiled into a target consisting of C and C++ sources.
Diffstat (limited to 'test cases/vala')
-rw-r--r--test cases/vala/5 target glib/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/test cases/vala/5 target glib/meson.build b/test cases/vala/5 target glib/meson.build
index 3f0d01e..f285d9f 100644
--- a/test cases/vala/5 target glib/meson.build
+++ b/test cases/vala/5 target glib/meson.build
@@ -1,4 +1,8 @@
-project('valatest', 'vala', 'c', default_options : ['werror=true'])
+project('valatest', 'vala', 'c')
+
+if not meson.is_unity()
+ add_global_arguments('-Werror', language : 'c')
+endif
valadeps = [dependency('glib-2.0', version : '>=2.32'), dependency('gobject-2.0')]