File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -187,12 +187,16 @@ IF (WITH_ASAN)
187
187
# gcc 4.8.1 and new versions of clang
188
188
MY_CHECK_AND_SET_COMPILER_FLAG ("-fsanitize=address -O1 -Wno-error -fPIC"
189
189
DEBUG RELWITHDEBINFO )
190
+ SET (HAVE_C_FSANITIZE ${HAVE_C__fsanitize_address__O1__Wno_error__fPIC} )
191
+ SET (HAVE_CXX_FSANITIZE ${HAVE_CXX__fsanitize_address__O1__Wno_error__fPIC} )
190
192
IF (HAVE_C_FSANITIZE AND HAVE_CXX_FSANITIZE )
191
193
SET (WITH_ASAN_OK 1 )
192
194
ELSE ()
193
195
# older versions of clang
194
196
MY_CHECK_AND_SET_COMPILER_FLAG ("-faddress-sanitizer -O1 -fPIC"
195
197
DEBUG RELWITHDEBINFO )
198
+ SET (HAVE_C_FADDRESS ${HAVE_C__faddress_sanitizer__O1__fPIC} )
199
+ SET (HAVE_CXX_FADDRESS ${HAVE_CXX__faddress_sanitizer__O1__fPIC} )
196
200
IF (HAVE_C_FADDRESS AND HAVE_CXX_FADDRESS )
197
201
SET (WITH_ASAN_OK 1 )
198
202
ENDIF ()
You can’t perform that action at this time.
0 commit comments