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

Unified Diff: build/config/BUILDCONFIG.gn

Issue 840863003: gn: declare is_desktop_linux as a build argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/BUILDCONFIG.gn
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index 7093f78f85736b15e3f312834248ef36751fa589..e9e7006dc6487ab8dcb6a9b59c4a64e1cb39c26c 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -31,6 +31,9 @@ declare_args() {
# Debug build.
is_debug = true
+ # Whether we're a traditional desktop unix.
+ is_desktop_linux = os == "linux" && os != "chromeos"
+
# Set to true when compiling with the Clang compiler. Typically this is used
# to configure warnings.
is_clang = os == "mac" || os == "ios" || os == "linux" || os == "chromeos"
@@ -160,8 +163,6 @@ if (os == "win") {
is_win = false
}
-is_desktop_linux = is_linux && !is_chromeos
-
# =============================================================================
# CPU ARCHITECTURE
# =============================================================================
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698