Skip to content

Commit 76da520

Browse files
committed
fix previous and increase variable tracking limit
1 parent 6946f7e commit 76da520

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,16 @@ if (ASAN)
183183
message(STATUS "ASAN is ${ASAN}")
184184
add_compile_options(-fsanitize=address -fno-omit-frame-pointer) # -fno-omit-frame-pointer for better stack traces
185185
add_link_options(-fsanitize=address)
186+
add_compile_options(-param=max-vartrack-size=1500000) # ASan seems to push this limit, slowing compiles
186187
endif(ASAN)
187188

188189
# Build with UBSan enabled if requested
189-
if (ASAN)
190+
if (UBSAN)
190191
message(STATUS "UBSAN is ${UBSAN}")
191192
add_compile_options(-fsanitize=undefined -fno-omit-frame-pointer) # -fno-omit-frame-pointer for better stack traces
192193
add_link_options(-fsanitize=undefined)
193-
endif(ASAN)
194+
add_compile_options(-param=max-vartrack-size=1500000) # UBSan seems to push this limit, slowing compiles
195+
endif(UBSAN)
194196

195197
# Report whether the build is parallel or not
196198
if(PARALLEL)

0 commit comments

Comments
 (0)