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

Unified Diff: src/trusted/service_runtime/linux/nacl_bootstrap.gyp

Issue 428753002: Fix for ARM cross build with clang. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 5 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: src/trusted/service_runtime/linux/nacl_bootstrap.gyp
diff --git a/src/trusted/service_runtime/linux/nacl_bootstrap.gyp b/src/trusted/service_runtime/linux/nacl_bootstrap.gyp
index c0bdc266beb92aa05ae699904e15adcf45766373..57f05685fc1c4c9f103aa29f2f12dbfb3331f2e8 100644
--- a/src/trusted/service_runtime/linux/nacl_bootstrap.gyp
+++ b/src/trusted/service_runtime/linux/nacl_bootstrap.gyp
@@ -156,6 +156,14 @@
'variables': {
'compiler': '<!(/bin/echo -n <(android_toolchain)/*-g++)',
}
+ }],
+ # When building for ARM default to arm-linux-gnueabihf-g++ rather
+ # than g++. This is needed when building with clang (since in
+ # this case $CC and $CXX are not set in the environment).
+ ['OS!="android" and target_arch=="arm"', {
+ 'variables': {
+ 'compiler': '<!(echo ${CXX:=arm-linux-gnueabihf-g++})',
+ }
}, {
'variables': {
'compiler': '<!(echo ${CXX:=g++})',
« 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