summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/ymake_conf.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index d56d05267e9..ad167ec746f 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -2026,10 +2026,12 @@ class MSVCCompiler(MSVC, Compiler):
cxx_warnings = []
if self.tc.use_clang:
+ if not self.tc.is_system_cxx:
+ flags += [
+ # Allow <windows.h> to be included via <Windows.h> in case-sensitive file-systems.
+ '-fcase-insensitive-paths',
+ ]
flags += [
- # Allow <windows.h> to be included via <Windows.h> in case-sensitive file-systems.
- '-fcase-insensitive-paths',
-
# At the time clang-cl identifies itself as MSVC 19.11:
# (actual value can be found in clang/lib/Driver/ToolChains/MSVC.cpp, the syntax would be like
# ```