Commit 7a4c78e0 authored by torne@chromium.org's avatar torne@chromium.org

Fix building android webview on arm64 on mac.

Android uses gcc 4.8 for target on arm64, so -Wno-unused-local-typedefs
gets added to the gcc command line; unfortunately the host toolchain on
mac does not support this flag. We have no way to detect the host
toolchain version in the WebView build because we generate makefiles in
advance instead of on the build machine, so just hardcode an exception
until the instances of this warning can be fixed and this entire
conditional section removed.

BUG=321833

Review URL: https://codereview.chromium.org/277983002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269766 0039d316-1c4b-4281-b951-d872f2087c98
parent d3fe5f28
...@@ -5155,6 +5155,20 @@ ...@@ -5155,6 +5155,20 @@
], ],
}, },
}], }],
# We need a special case to handle the android webview build on mac because
# the host gcc there doesn't accept this flag, but the target gcc may
# require it.
['gcc_version>=48 and android_webview_build==1 and host_os=="mac"', {
'target_defaults': {
'target_conditions': [
['_toolset=="target"', {
'cflags!': [
'-Wno-unused-local-typedefs',
],
}],
],
},
}],
['clang==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) ' ['clang==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) '
'and OS!="win"', { 'and OS!="win"', {
'make_global_settings': [ 'make_global_settings': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment