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++})', |