aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/50 noncross options/meson.build
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-03-28 19:33:52 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2022-03-28 19:33:52 +0300
commit6256b277687cba68e527712c3a7d327f480ab005 (patch)
tree9e0ac18411b3cefd9b02459d725b438044efaae8 /test cases/unit/50 noncross options/meson.build
parent479a84455f6b838e862b7b68b6edd8968dd8fe1c (diff)
downloadmeson-dircondense64.zip
meson-dircondense64.tar.gz
meson-dircondense64.tar.bz2
Condense test directory names.dircondense64
Diffstat (limited to 'test cases/unit/50 noncross options/meson.build')
-rw-r--r--test cases/unit/50 noncross options/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/50 noncross options/meson.build b/test cases/unit/50 noncross options/meson.build
new file mode 100644
index 0000000..6d479d6
--- /dev/null
+++ b/test cases/unit/50 noncross options/meson.build
@@ -0,0 +1,14 @@
+project('std_remains', 'c', default_options: ['c_std=c99'])
+
+executable('prog', 'prog.c')
+
+# Check that native: true does not affect the use of c_std in
+# non-cross builds
+
+if not meson.is_cross_build()
+ executable('prog2', 'prog.c', native: true)
+
+ # Check that even deps marked as native are found
+ # by default when not cross compiling.
+ dependency('ylib', method: 'pkg-config')
+endif