Open nablajs opened 5 years ago
I'm facing the same problem with latest stable version (r19c) and Beta 3 (r20). I hope the next NDK release contains a working CLANG version to fix this issue, which currently is a blocker for me.
Unfortunately, Clang on Windows is not tested so there will be issues like this. The best way to work around this issue is to change the arguments using:
toolChains {
clang(Clang) {
target("android") {
cppCompiler.withArguments { it.remove('-fPIC') }
}
}
}
Using the Android Clang toolchain for a non-Linux build system compile (vanilla gradle + 'cpp' plugin) on Windows adds unsupported '-fPIC' command line argument.
Expected Behavior
No errors when invoking clang->g++ because of invalid arguments
Perhaps this check should check the building platform, not the target one?
See also: llvm patch (2016)
Current Behavior
An error message is produced when invoking the C++ compiler:
Context
The goal here is to:
Steps to Reproduce (for bugs)
On Windows 10 with Visual Studio 2017 and Android NDK (r18b?) ...
Build android target as described in
build.gradle
below:build.gradle
parts:Your Environment
Gradle details:
Output of
gradlew components
: