not compile gwp in non-linux environment

This commit is contained in:
Han Fei 2023-01-17 23:06:44 +01:00
parent 7feb9b7f6f
commit 29b20775f7
2 changed files with 5 additions and 2 deletions

View File

@ -433,6 +433,11 @@ else()
link_libraries(global-group) link_libraries(global-group)
endif () endif ()
option (ENABLE_GWP_ASAN "Enable Gwp-Asan" ON)
if (NOT OS_LINUX AND NOT OS_ANDROID)
set(ENABLE_GWP_ASAN OFF)
endif ()
option(WERROR "Enable -Werror compiler option" ON) option(WERROR "Enable -Werror compiler option" ON)
if (WERROR) if (WERROR)

View File

@ -1,5 +1,3 @@
option (ENABLE_GWP_ASAN "Enable Gwp-Asan" ${ENABLE_LIBRARIES})
if (NOT ENABLE_GWP_ASAN) if (NOT ENABLE_GWP_ASAN)
message (STATUS "Not using gwp-asan") message (STATUS "Not using gwp-asan")
return () return ()