Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: build/config/BUILDCONFIG.gn

Issue 2692273008: Hacky slashy (Closed)
Patch Set: wip Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/BUILDCONFIG.gn
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index d055e705627c96782434537d0157594ff4f6dad0..aea0f81ac33e50300655c361e3dfa947bef06e6c 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -135,8 +135,9 @@ declare_args() {
# Set to true when compiling with the Clang compiler. Typically this is used
# to configure warnings.
- is_clang = current_os == "mac" || current_os == "ios" ||
- current_os == "linux" || current_os == "chromeos"
+ is_clang =
+ current_os == "mac" || current_os == "ios" || current_os == "linux" ||
+ current_os == "chromeos" || current_os == "fuchsia"
# Allows the path to a custom target toolchain to be injected as a single
# argument, and set as the default toolchain.
@@ -161,7 +162,8 @@ declare_args() {
#
# For more information see
# https://chromium.googlesource.com/chromium/src/+/master/docs/component_build.md
- is_component_build = is_debug && current_os != "ios"
+ is_component_build =
+ is_debug && current_os != "ios" && current_os != "fuchsia"
}
assert(!(is_debug && is_official_build), "Can't do official debug builds")
@@ -229,6 +231,8 @@ if (target_os == "android") {
} else {
_default_toolchain = "//build/toolchain/linux:$target_cpu"
}
+} else if (target_os == "fuchsia") {
+ _default_toolchain = "//build/toolchain/fuchsia:$target_cpu"
} else if (target_os == "ios") {
_default_toolchain = "//build/toolchain/mac:ios_clang_$target_cpu"
} else if (target_os == "mac") {
@@ -324,6 +328,15 @@ if (current_os == "win" || current_os == "winrt_81" ||
is_nacl = true
is_posix = true
is_win = false
+} else if (current_os == "fuchsia") {
+ is_android = false
+ is_chromeos = false
+ is_ios = false
+ is_linux = false
+ is_mac = false
+ is_nacl = false
+ is_posix = false
+ is_win = false
} else if (current_os == "ios") {
is_android = false
is_chromeos = false

Powered by Google App Engine
This is Rietveld 408576698