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

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

Issue 411803002: Fix for building ARM/linux using 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
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..ba4e1957cddac9edf6cd95408e54a4fca9c985fa 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-gnueabi-g++ rather
+ # than g++. This is needed when building with clang (since in
+ # this case $CC and $CXX are not set in the envrionement).
+ ['OS!="android" and target_arch=="arm"', {
+ 'variables': {
+ 'compiler': '<!(echo ${CXX:=arm-linux-gnueabi-g++})',
+ }
}, {
'variables': {
'compiler': '<!(echo ${CXX:=g++})',
« no previous file with comments | « no previous file | src/trusted/service_runtime/nacl_syscall_common.c » ('j') | src/trusted/service_runtime/nacl_syscall_common.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698