From 199bd43deffc614b2915f4de26475ca43d22e2ae Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 3 Dec 2020 11:43:02 +0000 Subject: Only build 32bit runtime libraries if supported by platform Automatically detect if 32bit bitcode files can be built. In this case, build runtime library with 32bit as well. --- runtime/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index ea8335de..54521f8b 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -11,8 +11,12 @@ add_subdirectory(Runtest) # Handle bitcode libraries # Define the different configurations to be compiled and made available using a specific suffix +set(bc_architectures 64) -set(bc_architectures 32 64) +# Compile 32bit support if available +if (M32_SUPPORTED) + list(APPEND bc_architectures "32") +endif () set(LIB_BC_SUFFIX "") -- cgit 1.4.1