aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2022-10-12 20:49:15 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2022-10-12 20:49:15 +0200
commit349316a078f0aa99fa7c5fde995f79685300fd77 (patch)
tree6ac1c4d26618a9bbdb7b98c61580242d44adcb45
parentb33f0434a6b4ca9b64ce7856ed12633ebf879cf7 (diff)
Work around a really strange issue when building teakra with -O0 on Windows
-rw-r--r--src/CMakeLists.txt2
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)