diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-05-11 07:57:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-05-11 07:57:48 -0700 |
commit | 823de0fec90d40a62a573efaac074fbc72293bdd (patch) | |
tree | f82fd82a54c24d762351649494c33b17f73d7ef5 | |
parent | 358ed61b023006bff29d09611bda9a57f26ca5ab (diff) | |
download | txr-823de0fec90d40a62a573efaac074fbc72293bdd.tar.gz txr-823de0fec90d40a62a573efaac074fbc72293bdd.tar.bz2 txr-823de0fec90d40a62a573efaac074fbc72293bdd.zip |
android: configure SDK level via clang --target.
* configure: don't set __ANDROID_API__, but instead use
--target to specify a target architecture. Some of the
version checking is now done using symbol attributes; the
preprocessor symbol alone doesn't tell the compiler what SDK
version is being targeted.
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1273,7 +1273,7 @@ if ! [ $darwin_target ] ; then if [ "$($make conftest.android)" = "yes" ] ; then printf "yes\n" android_target=y - lang_flags="$lang_flags -U__ANDROID_API__ -D__ANDROID_API__=65535 -D_BSD_SOURCE" + lang_flags="$lang_flags --target=aarch64-unknown-linux-android26 -D_BSD_SOURCE" printf "Regenerating config.make ..." gen_config_make printf "done\n" |