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

Unified Diff: build/toolchain/toolchain.gni

Issue 2388063003: Add a variable use_system_xcode to GN. (Closed)
Patch Set: Add a missing required argument. Created 4 years, 2 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/toolchain/toolchain.gni
diff --git a/build/toolchain/toolchain.gni b/build/toolchain/toolchain.gni
index 6251fe05947f988ceff0163112de1da0f7c751a6..dab5b77c7c9f8d6ef820acdadbce9ad71f6d222b 100644
--- a/build/toolchain/toolchain.gni
+++ b/build/toolchain/toolchain.gni
@@ -40,6 +40,18 @@ declare_args() {
# with the build. Used on iOS to ship official builds (as they are built
# with the version of clang shipped with Xcode).
use_xcode_clang = is_ios && is_official_build
+
+ # Use the system install of Xcode for tools like ibtool, libtool, etc.
+ # This does not affect the compiler. When this variable is false, targets will
+ # instead use a hermetic install of Xcode. [The hermetic install can be
+ # obtained with gclient sync after setting the environment variable
+ # FORCE_MAC_TOOLCHAIN].
+ use_system_xcode = true
+
+ # The path to the hermetic install of Xcode. Only relevant when
+ # use_system_xcode = false.
+ hermetic_xcode_path =
+ rebase_path("//build/mac_files/Xcode.app", "", root_build_dir)
Dirk Pranke 2016/10/04 20:25:40 Can we just set xcode_path to "/Applications/Xcode
erikchen 2016/10/05 19:57:19 I like the idea of only having a single variable t
Dirk Pranke 2016/10/06 01:08:44 Good point re: a simple flag. We can certainly di
}
declare_args() {

Powered by Google App Engine
This is Rietveld 408576698