File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
186187endif (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
196198if (PARALLEL)
You can’t perform that action at this time.
0 commit comments