| 1 |
set(CMAKE_SYSTEM_NAME Linux) |
| 2 |
set(CMAKE_SYSTEM_VERSION 1) |
| 3 |
set(CMAKE_SYSTEM_PROCESSOR "x86") |
| 4 |
|
| 5 |
# we explicitly require clang because GCC 11.3.0 has false positives on the |
| 6 |
# stringop-overflow check that cause the build to fail. |
| 7 |
set(CMAKE_C_COMPILER clang) |
| 8 |
set(CMAKE_CXX_COMPILER clang++) |
| 9 |
|
| 10 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags") |
| 11 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags") |
| 12 |
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -m32" CACHE STRING "asm flags") |