-
Notifications
You must be signed in to change notification settings - Fork 294
Closed
Description
We use cmake to generate moc_predefs.h for Qt5 and his moc binary.
Since we switched to clang compiler we see that it does not provide __ANDROID__ anymore.
$ /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -dM -E -c /usr/share/cmake-3.12/Modules/CMakeCXXCompilerABI.cpp
[...]
$ /opt/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-g++ -dM -E -c /usr/share/cmake-3.12/Modules/CMakeCXXCompilerABI.cpp
[...]
#define __ANDROID__ 1
Is this a bug? The moc binary of Qt5 cannot detect Android anymore.
Metadata
Metadata
Assignees
Labels
No labels