aboutsummaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-01-28 15:02:57 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2020-02-29 16:34:49 +0000
commitcc98d262fe0168c1523879746d657eceafd38bb6 (patch)
tree9d698a7d64aa097887c318c98989c4342bd9efbb /test cases/common
parent74452f2a1c842291c893504876507946103ac77f (diff)
downloadmeson-cc98d262fe0168c1523879746d657eceafd38bb6.zip
meson-cc98d262fe0168c1523879746d657eceafd38bb6.tar.gz
meson-cc98d262fe0168c1523879746d657eceafd38bb6.tar.bz2
Test host_machine is correctly detected after add_languages()
Test that the host_machine is correctly detected after add_languages(), when no langauge is initially specified in project(). In the MSYS2 MSYSTEM=MINGW32 environment (64-bit MSYS2 but with a i686-w64-mingw32 targeted gcc as gcc) this test fails, as it (incorrectly) tries to build retval-x86_64.S using an x86 compiler.
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/123 cpp and asm/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/common/123 cpp and asm/meson.build b/test cases/common/123 cpp and asm/meson.build
index cf064d0..ec7c466 100644
--- a/test cases/common/123 cpp and asm/meson.build
+++ b/test cases/common/123 cpp and asm/meson.build
@@ -1,4 +1,5 @@
-project('c++ and assembly test', 'cpp')
+project('c++ and assembly test')
+add_languages('cpp')
cpp = meson.get_compiler('cpp')
cpu = host_machine.cpu_family()