From 349316a078f0aa99fa7c5fde995f79685300fd77 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Wed, 12 Oct 2022 20:49:15 +0200 Subject: [PATCH] Work around a really strange issue when building teakra with -O0 on Windows --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cdb05871..00262afc 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 "$<$:-Og>") target_link_libraries(core PRIVATE teakra) find_library(m MATH_LIBRARY)