| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index 54e462c8d4a5da76df042ca1a7a98b910d6d7da7..ba484c41ab13f8395a9252ddd6c7683932318b77 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -2279,7 +2279,7 @@
|
| 'libraries': [
|
| '-l<(android_stlport_library)',
|
| # Manually link the libgcc.a that the cross compiler uses.
|
| - '<!($CROSS_CC -print-libgcc-file-name)',
|
| + '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
|
| '-lc',
|
| '-ldl',
|
| '-lstdc++',
|
| @@ -2885,7 +2885,7 @@
|
| ],
|
| },
|
| }],
|
| - ['clang==1', {
|
| + ['clang==1 and OS!="android"', {
|
| 'make_global_settings': [
|
| ['CC', '<(make_clang_dir)/bin/clang'],
|
| ['CXX', '<(make_clang_dir)/bin/clang++'],
|
| @@ -2895,6 +2895,18 @@
|
| ['LINK.host', '$(LINK)'],
|
| ],
|
| }],
|
| + ['OS=="android" and "<(GENERATOR)"!="ninja"', {
|
| + # Hardcode the compiler names in the Makefile so that
|
| + # it won't depend on the environment at make time.
|
| + 'make_global_settings': [
|
| + ['CC', '<!(/bin/echo -n ${GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-gcc)'],
|
| + ['CXX', '<!(/bin/echo -n ${GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-g++)'],
|
| + ['LINK', '<!(/bin/echo -n ${GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-gcc)'],
|
| + ['CC.host', '<!(which gcc)'],
|
| + ['CXX.host', '<!(which g++)'],
|
| + ['LINK.host', '<!(which g++)'],
|
| + ],
|
| + }],
|
| ],
|
| 'xcode_settings': {
|
| # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
|
|
|