[llvm] Enable the use of SCCache for debug builds on Windows (PR #82371)
Dave Abrahams via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 07:26:48 PST 2024
https://github.com/dabrahams created https://github.com/llvm/llvm-project/pull/82371
None
>From 9e206c0704a3fb997648ca189876cdfe1c1ec8d7 Mon Sep 17 00:00:00 2001
From: Dave Abrahams <dabrahams at adobe.com>
Date: Tue, 20 Feb 2024 07:26:29 -0800
Subject: [PATCH] Enable the use of SCCache for debug builds on Windows
---
cmake/Modules/CMakePolicy.cmake | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cmake/Modules/CMakePolicy.cmake b/cmake/Modules/CMakePolicy.cmake
index 0ec32ad8637f3d..bdbb836e56e8ed 100644
--- a/cmake/Modules/CMakePolicy.cmake
+++ b/cmake/Modules/CMakePolicy.cmake
@@ -10,3 +10,9 @@ endif()
if(POLICY CMP0116)
cmake_policy(SET CMP0116 OLD)
endif()
+
++# Enable debug info compatible with SCCache
++# https://github.com/mozilla/sccache?tab=readme-ov-file#usage
++if(POLICY CMP0141)
++ cmake_policy(SET CMP0141 NEW)
++endif()
More information about the llvm-commits
mailing list