summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2021-12-24 02:23:02 +0100
committerliushuyu <liushuyu011@gmail.com>2022-07-05 05:21:56 +0200
commit40493231edad7085544b79b6c3ac7360d112170c (patch)
tree5124d6fde6ca6b913c13aca60620c134e3bcf3f1 /src
parentCI: use Ninja to build stuff faster (diff)
downloadyuzu-40493231edad7085544b79b6c3ac7360d112170c.tar
yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.gz
yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.bz2
yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.lz
yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.xz
yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.zst
yuzu-40493231edad7085544b79b6c3ac7360d112170c.zip
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 39d038493..39ae573b2 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()