Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
llvm-root: ../third-party/llvm-project/install
llvm-archive-extension: {{#if (ieq os 'windows') }}7z{{else}}tar.bz2{{/if}}
llvm-archive-filename: {{{ llvm-archive-basename }}}.{{{ llvm-archive-extension }}}
llvm-sanizizer-config: {{#if (or (ne compiler 'clang') (ne compiler 'apple-clang'))}}{{else if ubsan}}Undefined{{else if asan}}Address{{/if}}
llvm-sanitizer-config: {{#if (or (ne compiler 'clang') (ne compiler 'apple-clang'))}}{{else if ubsan}}Undefined{{else if asan}}Address{{/if}}
mrdocs-ccflags: {{{ ccflags }}} {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
mrdocs-cxxflags: {{{ cxxflags }}} {{#if (and (eq compiler 'gcc') (not asan)) }}-static{{/if}}
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
Expand Down Expand Up @@ -261,8 +261,8 @@ jobs:
build-dir: ${sourceDir}/llvm/build
preset: ${{ matrix.llvm-build-preset }}
build-type: ${{ matrix.build-type }}
# The LLVM_USE_SANITIZER option doesn't support GCC.
extra-args: |
${{ runner.os == 'Windows' && '-DLLVM_ENABLE_RUNTIMES=libcxx' || '-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi;libunwind' }}
-DLLVM_USE_SANITIZER=${{ matrix.llvm-sanitizer-config }}
cc: ${{ steps.setup-cpp.outputs.cc }}
cxx: ${{ steps.setup-cpp.outputs.cxx }}
Expand Down
28 changes: 28 additions & 0 deletions CMakeUserPresets.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,34 @@
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "debug-macos-fast",
"displayName": "Debug with Optimized Dependencies (macOS)",
"description": "Preset for building MrDocs in Debug mode with the default compiler in macOS.",
"inherits": "debug",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"LLVM_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/release",
"Clang_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/release",
"duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/release",
"Duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/release",
"libxml2_ROOT": "$env{HOME}/Developer/cpp-libs/libxml2/install/release",
"LibXml2_ROOT": "$env{HOME}/Developer/cpp-libs/libxml2/install/release",
"MRDOCS_BUILD_TESTS": true,
"MRDOCS_BUILD_DOCS": false,
"MRDOCS_GENERATE_REFERENCE": false,
"MRDOCS_GENERATE_ANTORA_REFERENCE": false
},
"warnings": {
"unusedCli": false
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
}
]
}
Loading
Loading