Skip to content

Commit bb92bbd

Browse files
Fixed address sanitizer flags when using clang on windows (#1632)
Fixed address sanitizer flags when using clang on windows.
1 parent b374f4a commit bb92bbd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ FetchContent_Declare(ios-cmake
5454
EXCLUDE_FROM_ALL)
5555
FetchContent_Declare(JsRuntimeHost
5656
GIT_REPOSITORY https://github.com/BabylonJS/JsRuntimeHost.git
57-
GIT_TAG a7bcbd4bcd0d92e2ef05a92daf490298fde74ead)
57+
GIT_TAG 08b5ecc5c7d85e617bb44f9394b3517097dd7e3e)
5858
FetchContent_Declare(libwebp
5959
GIT_REPOSITORY https://github.com/webmproject/libwebp.git
6060
GIT_TAG 57e324e2eb99be46df46d77b65705e34a7ae616c
@@ -147,7 +147,10 @@ if(ENABLE_SANITIZERS)
147147
set(SANITIZERS "address,undefined")
148148
# Check for Clang since vptr and fdsan are Clang-specific
149149
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
150-
list(APPEND SANITIZERS "vptr")
150+
# vptr is not supported on Windows.
151+
if(NOT WIN32)
152+
list(APPEND SANITIZERS "vptr")
153+
endif()
151154
# FDSan only works on Android builds with Clang
152155
if (ANDROID)
153156
list(APPEND SANITIZERS "fdsan")

0 commit comments

Comments
 (0)