Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index aa66b894a81f4777c4f801bb7b5dba9e0447f537..114ce1be29e7a4e8ac218e0aa3c067f3b95c18fc 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -16,6 +16,18 @@ declare_args() { |
android_full_debug = false |
} |
+# default_include_dirs --------------------------------------------------------- |
+# |
+# This is a separate config so that third_party code (which would not use the |
+# source root and might have conflicting versions of some headers) can remove |
+# this and specify their own include paths. |
+config("default_include_dirs") { |
+ include_dirs = [ |
+ "//", |
+ root_gen_dir, |
+ ] |
+} |
+ |
# compiler --------------------------------------------------------------------- |
# |
# Base compiler configuration. |
@@ -29,9 +41,6 @@ config("compiler") { |
cflags_cc = [] |
ldflags = [] |
defines = [] |
- include_dirs = [] |
- |
- include_dirs += [ "//", root_gen_dir ] |
# In general, Windows is totally different, but all the other builds share |
# some common GCC configuration. This section sets up Windows and the common |