summarylogtreecommitdiffstats
path: root/fix_clang.diff
blob: e131c5f77e1011bfa7f6a2b04da2e00ce4e787ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index 29b0bbeae..e29d74c7b 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -569,7 +569,9 @@ foreach(_target_type,
         public_deps = []
       }
 
-      if (is_clang) {
+      use_libcxx_modules = false
+
+      if (is_clang && use_libcxx_modules) {
         # When clang is used, some target may use clang module. This dependency
         # is required for things to work, regardless of whether the libc++
         # module is used in this target or not.
@@ -690,7 +692,9 @@ foreach(_target_type,
         public_deps = []
       }
 
-      if (is_clang) {
+      use_libcxx_modules = false
+
+      if (is_clang && use_libcxx_modules) {
         # When clang is used, some target may use clang module. This dependency
         # is required for things to work, regardless of whether the libc++
         # module is used in this target or not.