diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-10-12 20:49:15 +0200 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-10-12 20:49:15 +0200 |
commit | 349316a078f0aa99fa7c5fde995f79685300fd77 (patch) | |
tree | 6ac1c4d26618a9bbdb7b98c61580242d44adcb45 | |
parent | b33f0434a6b4ca9b64ce7856ed12633ebf879cf7 (diff) |
Work around a really strange issue when building teakra with -O0 on Windows
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cdb0587..00262af 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,6 +106,8 @@ if (ENABLE_JIT) endif() add_subdirectory(teakra EXCLUDE_FROM_ALL) +# Workaround for building teakra with -O0 on Windows either failing or hanging forever +target_compile_options(teakra PRIVATE "$<$<CONFIG:DEBUG>:-Og>") target_link_libraries(core PRIVATE teakra) find_library(m MATH_LIBRARY) |