Skip to content

Commit

Permalink
lib: core: fix the debug build
Browse files Browse the repository at this point in the history
We can't install a core.so with sanitizers enabled because that would
require a lua build with sanitizers enabled.  We don't actually need them
there, though- just in the orch(1) driver which we use to run our tests.

Signed-off-by: Kyle Evans <[email protected]>
  • Loading branch information
kevans91 committed Feb 10, 2024
1 parent 40cf82d commit 5c80b25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,12 @@ target_include_directories(core_static PRIVATE ${core_INCDIRS})

target_link_libraries(core "${LUA_LIBRARIES}")

# Disable all sanitizers for the dynamic library, because that requires us to
# also have a lua built with them enabled. For our purposes, it's sufficient to
# just roll with a sanitizer-enabled static build since that's what we'll be
# using to run our tests.
target_compile_options(core PUBLIC -fno-sanitize=all)
target_link_options(core PUBLIC -fno-sanitize=all)

install(TARGETS core
DESTINATION "${LUA_MODLIBDIR}/orch")

0 comments on commit 5c80b25

Please sign in to comment.