From cc98d262fe0168c1523879746d657eceafd38bb6 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 28 Jan 2020 15:02:57 +0000 Subject: 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. --- test cases/common/123 cpp and asm/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test cases/common/123 cpp and asm/meson.build b/test cases/common/123 cpp and asm/meson.build index cf064d007..ec7c46684 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() -- cgit v1.2.3