Skip to content

Commit 8d47c19

Browse files
committed
Don't enable ASan on 32 bit systems.
1 parent 403c2b1 commit 8d47c19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function(tiny_engine_configure_target TARGET_NAME)
5252
target_include_directories(${TARGET_NAME} PUBLIC include)
5353

5454
# Enable ASan.
55-
if(NOT IS_RELEASE_BUILD AND NOT MSVC)
55+
if(NOT IS_RELEASE_BUILD AND NOT MSVC AND NOT CMAKE_SIZEOF_VOID_P EQUAL 4)
5656
message(STATUS "${TARGET_NAME}: Address sanitizer is enabled.")
5757
target_compile_definitions(${TARGET_NAME} PRIVATE ENGINE_ASAN_ENABLED)
5858
target_compile_options(${TARGET_NAME} PRIVATE -fno-omit-frame-pointer)

0 commit comments

Comments
 (0)