Skip to content

Commit 6344f83

Browse files
committed
Fix ASAN build in test script on MSVC
1 parent b9fb288 commit 6344f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if(TE_BUILD_TEST_RUNNER)
111111
# C4554: check operator precedence for possible error; use parentheses to clarify precedence
112112
# is suppressed because of unit test, not the code itself.
113113
if(USE_ADDRESS_SANITIZE)
114-
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX /wd4554
114+
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX- /wd4554
115115
$<$<CONFIG:Debug>:/Od /fsanitize=address> $<$<CONFIG:Release>:/O2>)
116116
else()
117117
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX /wd4554

0 commit comments

Comments
 (0)