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

Unified Diff: build/common.gypi

Issue 2066533002: gyp: <(GENERATOR) is now always ninja, so simplify some conditionals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « breakpad/breakpad.gyp ('k') | build/ios/mac_build.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index e88a8953d7698956f9e306c6730903cf36c44c44..5c1914ce900746f679780caab7a475e867ea3c7d 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2013,8 +2013,7 @@
['syzyasan==1 or kasko_hang_reports==1 or kasko_failed_rdv_reports==1', {
'kasko': 1,
}],
- ['component=="shared_library" and "<(GENERATOR)"=="ninja"', {
- # Only enabled by default for ninja because it's buggy in VS.
rohitrao (ping after 24h) 2016/06/13 16:16:50 We no longer need this VS-specific fix?
+ ['component=="shared_library"', {
# Not enabled for component=static_library because some targets
# are too large and the toolchain fails due to the size of the
# .obj files.
@@ -2140,12 +2139,11 @@
'-t', 'ios',
'--no-output-all-resource-defines',
],
- # Enable host builds when generating with ninja-ios.
- 'conditions': [
- ['"<(GENERATOR)"=="ninja"', {
- 'host_os%': "mac",
- }],
+ # Enable host builds.
+ 'host_os%': "mac",
+
+ 'conditions': [
# Use the version of clang shipped with Xcode when building official
# version of Chrome for iOS.
#
@@ -4287,6 +4285,10 @@
}]]
}],
['clang==1', {
+ 'cflags': [
+ # See http://crbug.com/110262
+ '-fcolor-diagnostics',
+ ],
'cflags_cc': [
# gnu++11 instead of c++11 is needed because some code uses
# typeof() (a GNU extension).
@@ -4333,12 +4335,6 @@
'-mstackrealign',
],
}],
- ['clang==1 and "<(GENERATOR)"=="ninja"', {
- 'cflags': [
- # See http://crbug.com/110262
- '-fcolor-diagnostics',
- ],
- }],
# Common options for AddressSanitizer, LeakSanitizer,
# ThreadSanitizer, MemorySanitizer and non-official CFI builds.
['asan==1 or lsan==1 or tsan==1 or msan==1 or ubsan==1 or ubsan_security==1 or ubsan_vptr==1 or '
@@ -5079,6 +5075,12 @@
['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
{'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
],
+ ['clang==1', {
+ 'OTHER_CFLAGS': [
+ # See http://crbug.com/110262
+ '-fcolor-diagnostics',
+ ],
+ }],
# Note that the prebuilt Clang binaries should not be used for iOS
# development except for ASan builds.
['clang_xcode==0', {
@@ -5100,22 +5102,6 @@
'-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
],
}],
- ['clang==1 and "<(GENERATOR)"=="ninja"', {
- 'OTHER_CFLAGS': [
- # See http://crbug.com/110262
- '-fcolor-diagnostics',
- ],
- }],
- ['OS=="ios" and target_subarch!="arm32" and \
- "<(GENERATOR)"=="xcode"', {
- 'OTHER_CFLAGS': [
- # TODO(ios): when building Chrome for iOS on 64-bit platform
- # with Xcode, the -Wshorted-64-to-32 warning is automatically
- # enabled. This cause failures when compiling protobuf code,
- # so disable the warning. http://crbug.com/359107
- '-Wno-shorten-64-to-32',
- ],
- }],
],
},
'conditions': [
@@ -6058,10 +6044,7 @@
['CXX.host', '<(host_cxx)'],
],
}],
- # TODO(yyanagisawa): supports GENERATOR==make
- # make generator doesn't support CC_wrapper without CC
- # in make_global_settings yet.
- ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
+ ['use_goma==1', {
'make_global_settings': [
['CC_wrapper', '<(gomadir)/gomacc'],
['CXX_wrapper', '<(gomadir)/gomacc'],
@@ -6340,14 +6323,7 @@
'TARGETED_DEVICE_FAMILY': '1,2',
'conditions': [
['ios_sdk_path==""', {
- 'conditions': [
- # TODO(justincohen): Ninja only supports simulator for now.
rohitrao (ping after 24h) 2016/06/13 16:16:50 Is this still a TODO that needs to be addressed?
Nico 2016/06/13 16:18:28 Given that we ship device builds with ninja, I'm a
sdefresne 2016/06/13 16:30:07 AFAIK, gyp ninja generator override this value and
- ['"<(GENERATOR)"=="xcode"', {
- 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot
- }, {
- 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot
- }],
- ],
+ 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot
}, {
'SDKROOT': '<(ios_sdk_path)', # -isysroot
}],
« no previous file with comments | « breakpad/breakpad.gyp ('k') | build/ios/mac_build.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698