diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-09-24 20:04:39 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-09-24 20:04:39 -0700 |
commit | 57202329aa0243c59145c0e6964a4ca3762ef47d (patch) | |
tree | 382b36c11f4632172527363d4977aa01316b978d /tests/standalone/builtin-macros | |
parent | 7c62b1cdb17c7233c218cd85f27dfe7afbf01e0e (diff) | |
download | ndk-57202329aa0243c59145c0e6964a4ca3762ef47d.tar.gz |
Enhance standalone/run.sh to test clang
With this clang can be tested in standalone mode
eg.
./tests/standalone/run.sh --no-sysroot \
--prefix=$OPT/android-ndk-api14-arm/bin/clang
Change-Id: I3337f2737a3e18fc1d2c628da7b8bb5320271cce
Diffstat (limited to 'tests/standalone/builtin-macros')
-rw-r--r-- | tests/standalone/builtin-macros/run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/standalone/builtin-macros/run.sh b/tests/standalone/builtin-macros/run.sh index fb6386107..d897f60ec 100644 --- a/tests/standalone/builtin-macros/run.sh +++ b/tests/standalone/builtin-macros/run.sh @@ -13,7 +13,7 @@ macro_val () { } # Read all the built-in macros, and assign them to our own variables. -MACRO_LINES=$(${PREFIX}gcc $CFLAGS -dM -E - < /dev/null | sort -u | tr ' ' '^^^' | tr '"' '~') +MACRO_LINES=$($CC $CFLAGS -dM -E - < /dev/null | sort -u | tr ' ' '^^^' | tr '"' '~') for LINE in $MACRO_LINES; do LINE=$(echo "$LINE" | tr '^^^' ' ') @@ -86,7 +86,7 @@ macro_check_undef () { COUNT=$(( $COUNT + 1 )) } -echo "Checking built-in macros for: ${PREFIX}gcc $CFLAGS" +echo "Checking built-in macros for: $CC $CFLAGS" # All toolchains must define the following prebuilt macros. macro_check __ANDROID__ 1 "Android target system" |