[PATCH] fix -DARCH=32 build

While we wait on the official CMakefiles.txt from Intel to arrive, attached is a small cleanup of the existing runtime/src/CMakeList.txt which fixes the IA-32 build of libiomp5. With these changes…

%mkdir build
% cd build
% cmake -DARCH=32 …
% make VERBOSE=1

will produce a 32-bit libiomp5.

When “cmake -DARCH=64 …” or “cmake …” is used, the Intel® 64 build is obtained.


ps Note that an explicit ARCH_MODE variable is used pass -m32 to assemble z_Linux_asm.s as passing COMMON_FLAGS with -x assembler-with-cpp produces a compiler error of…

clang: error: unknown argument: ‘-fPIC -Wno-unused-value -Wno-switch -Wno-deprecated-register -fno-exceptions’ [-Wunused-command-line-argument-hard-error-in-future]

fix_arch_32_build.patch (1.63 KB)