diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-07-05 20:30:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-05 20:30:38 -0400 |
| commit | bbc368882c7052e28f3cd510f0e1bc0481703b1c (patch) | |
| tree | a580077f3b8f5ebbba6ee58ba594192f68ebdeea /src | |
| parent | 786963fac71e7f5c9e945a0fd3c15c8ffe213b3c (diff) | |
| parent | b69c2847c2731eb40b753fcea58487e6d2e23cd8 (diff) | |
Merge pull request #8486 from liushuyu/github-actions-verify
CI: Use GitHub Actions to validate pull requests
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 39d0384933..39ae573b26 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,7 +36,6 @@ if (MSVC) # /GT - Supports fiber safety for data allocated using static thread-local storage add_compile_options( /MP - /Zi /Zm200 /Zo /permissive- @@ -79,6 +78,13 @@ if (MSVC) /we5245 # 'function': unreferenced function with internal linkage has been removed ) + if (USE_CCACHE) + # when caching, we need to use /Z7 to downgrade debug info to use an older but more cachable format + add_compile_options(/Z7) + else() + add_compile_options(/Zi) + endif() + if (ARCHITECTURE_x86_64) add_compile_options(/QIntel-jcc-erratum) endif() |
