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 4242 latest-factors : |
4343 msvc Optimized-Debug
4444 gcc UBSan Coverage
45- clang UBSan
45+ clang UBSan ASan
4646 factors : ' '
4747 runs-on : |
4848 apple-clang: macos-15
7575 llvm-root: ../third-party/llvm-project/install
7676 llvm-archive-extension: {{#if (ieq os 'windows') }}7z{{else}}tar.bz2{{/if}}
7777 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}}
7880 mrdocs-ccflags: {{{ ccflags }}} {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
7981 mrdocs-cxxflags: {{{ cxxflags }}} {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
8082 mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
@@ -264,7 +266,7 @@ jobs:
264266 # The UBSan vptr sanitizer needs RTTI.
265267 ${{ matrix.ubsan && '-DLLVM_ENABLE_RTTI=ON' }}
266268 # 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 }}
268270 cc : ${{ steps.setup-cpp.outputs.cc }}
269271 cxx : ${{ steps.setup-cpp.outputs.cxx }}
270272 generator : Ninja
You can’t perform that action at this time.
0 commit comments