From 2ab306d765a1c7295b459b817c5649c59cc9fc42 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Sat, 15 Nov 2025 00:35:10 -0300 Subject: [PATCH] docs: Only add warning when building with ccache Signed-off-by: Caio Oliveira --- docs/Build.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/Build.md b/docs/Build.md index c9f4ddf1a9..f8d8e1dd8b 100644 --- a/docs/Build.md +++ b/docs/Build.md @@ -60,7 +60,6 @@ Hit "Configure Project", then wait for CMake to finish configuring (may take a w > - It's recommended to install **[Ninja](https://ninja-build.org/)** > - You must load **Visual C++ development environment**, this can be done by running our convenience script: > - `tools/windows/load-msvc-env.ps1` -> - You need to add the environment variable `CL` with the `/FS` flag ([Reference](https://learn.microsoft.com/pt-br/cpp/build/reference/fs-force-synchronous-pdb-writes?view=msvc-170)) to prevent building errors. Availables ``: - MSYS2: `MSYS Makefiles` @@ -73,6 +72,9 @@ Availables ``: - `RelWithDebInfo` (debug symbols--compiled executable will be large) - `Debug` (if you are using a debugger and annoyed with stuff getting optimized out) +Caveat for Debug Builds: +- If you're building with CCache, you will need to add the environment variable `CL` with the `/FS` flag ([Reference](https://learn.microsoft.com/pt-br/cpp/build/reference/fs-force-synchronous-pdb-writes?view=msvc-170)) + Also see the [Options](Options.md) page for additional CMake options. ```sh