diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 17:27:56 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 17:47:31 +0100 |
commit | ef75de200a53029d788b7b95d5548b59e3f991c3 (patch) | |
tree | d10cd16b21efa88586846b9fd64ad7a4a1b19329 /external | |
parent | 4cc653d8e5b3e9a46ca3453759d714b9664e487c (diff) |
cmake: add hack for luajit when building with asan
Diffstat (limited to 'external')
-rw-r--r-- | external/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 569808b1..c60c0ae9 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -220,7 +220,12 @@ if(FLOORMAT_SUBMODULE-DEPENDENCIES) set(CMAKE_C_EXTENSIONS 1) unset(CMAKE_C_VISIBILITY_PRESET) unset(CMAKE_VISIBILITY_INLINES_HIDDEN) - add_subdirectory(luajit) + if(CMAKE_COMPILER_IS_GNUCXX) + # HACK + add_compile_options(-fno-sanitize=all) + add_link_options(-fno-sanitize=all) + add_subdirectory(luajit) + endif() endfunction() function(fm_add_libs) |