File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 42
42
latest-factors : |
43
43
msvc Optimized-Debug
44
44
gcc UBSan Coverage
45
- clang UBSan
45
+ clang UBSan ASan
46
46
factors : ' '
47
47
runs-on : |
48
48
apple-clang: macos-15
75
75
llvm-root: ../third-party/llvm-project/install
76
76
llvm-archive-extension: {{#if (ieq os 'windows') }}7z{{else}}tar.bz2{{/if}}
77
77
llvm-archive-filename: {{{ llvm-archive-basename }}}.{{{ llvm-archive-extension }}}
78
+ # The LLVM_USE_SANITIZER option only supports Clang.
79
+ llvm-sanizizer-config: {{#if (ne compiler 'clang')}}{{else if ubsan}}Undefined{{else if asan}}Address{{/if}}
78
80
mrdocs-ccflags: {{{ ccflags }}} {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
79
81
mrdocs-cxxflags: {{{ cxxflags }}} {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
80
82
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
@@ -264,7 +266,7 @@ jobs:
264
266
# The UBSan vptr sanitizer needs RTTI.
265
267
${{ matrix.ubsan && '-DLLVM_ENABLE_RTTI=ON' }}
266
268
# The LLVM_USE_SANITIZER option doesn't support GCC.
267
- ${{ ! matrix.compiler == 'gcc' && matrix.ubsan && '-DLLVM_USE_SANITIZER=Undefined' }}
269
+ -DLLVM_USE_SANITIZER= ${{ matrix.llvm-sanitizer-config }}
268
270
cc : ${{ steps.setup-cpp.outputs.cc }}
269
271
cxx : ${{ steps.setup-cpp.outputs.cxx }}
270
272
generator : Ninja
You can’t perform that action at this time.
0 commit comments