From 3df39b642a67de6238c07dc833893e9548544927 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 8 Dec 2012 19:18:08 +0100 Subject: [PATCH] Don't build tests twice under MULTILIB on 32 bit boxes. Specifying the flag there probably doesn't make much sense in the first place. --- runtime/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index b26430af..b55776cf 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -504,7 +504,9 @@ function(add_tests module_files) testcase(debug "-g;-d-debug") testcase(release "-O3;-release") - if(MULTILIB) + + # On 64 bit multilib builds, run the tests in 32 bit mode as well. + if(MULTILIB AND ${MULTILIB_SUFFIX} EQUAL 32) testcase(debug_32 "-g;-d-debug;-m32") testcase(release_32 "-O3;-release;-m32") endif()