-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDC runtime is broken for android #4268
Comments
The lld linker (coming with NDKs >= 22 IIRC) isn't supported on Android, our TLS emulation requires the bfd linker. So any NDK > 21 doesn't work, see #3918. |
"aarch64-.*-linux-android":
{
switches = [
"-defaultlib=phobos2-ldc,druntime-ldc",
"-link-defaultlib-shared=false",
"-gcc=C:/Users/Hipreme/AppData/Local/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android21-clang.cmd",
"-linker=C:/Users/Hipreme/AppData/Local/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android-ld.bfd.exe"
];
lib-dirs = [
"%%ldcbinarypath%%/../../ldc2-1.29.0-android-aarch64/lib",
];
rpath = "%%ldcbinarypath%%/../../ldc2-1.29.0-android-aarch64/lib";
}; Is working now! Thanks |
Looks like this has become a blocker for Android apps. Any published app must now be targeted at API level 33, but NDK r21e only supports up to 30. |
Thx for the info. Let's close this and move the 'discussion' to #3918, which contains more detailed info. |
Tested
I'm doing that on windows btw.
My etc.conf:
This trivial code gives runtime error on rt_init
The text was updated successfully, but these errors were encountered: