Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Prebuilt clang does not have llvm core library(dll) for windows.

29 views
Skip to first unread message

codetronik

unread,
Aug 31, 2023, 9:51:42 PM8/31/23
to android-llvm

I'm trying to build llvm pass for ndk with prebuilt clang.

For linux, we provide llvm library, but Windows doesn't have dll, so it's impossible to build a pass.
Even darwin includes dylib library.
It was built easily on Linux and mac.
Not for Windows in the plan?

you can check it at the link below.

Darwin prebuilt clang
https://android.googlesource.com/platform/prebuilts/clang/host/darwin-x86/+/refs/heads/ndk-r25-release/clang-r450784d1/lib64/

Windows prebuilt clang
https://android.googlesource.com/platform/prebuilts/clang/host/windows-x86/+/refs/heads/ndk-r25-release/clang-r450784d1/lib64/

Linux prebuilt clang

https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/refs/heads/ndk-r25-release/clang-r450784d1/lib64/


There is also no dll in the following way.
https://android.googlesource.com/toolchain/llvm_android/+/refs/heads/main/README.md


There is no code in do_build.py to create .dll.

def normalize_llvm_host_libs(install_dir: Path, host: hosts.Host, version: Version) -> None: if host.is_linux: libs = {'libLLVM': 'libLLVM-{version}git.so', 'libclang': 'libclang.so.{version}git', 'libclang-cpp': 'libclang-cpp.so.{version}git', 'libc++': 'libc++.so.{version}', 'libc++abi': 'libc++abi.so.{version}' } else: libs = {'libc++': 'libc++.{version}.dylib', 'libc++abi': 'libc++abi.{version}.dylib' }

Stephen Hines

unread,
Sep 1, 2023, 1:19:54 PM9/1/23
to codetronik, android-llvm
Hi there,

I briefly also saw the NDK request for this.

On Thu, Aug 31, 2023 at 6:51 PM codetronik <shopma...@gmail.com> wrote:

I'm trying to build llvm pass for ndk with prebuilt clang.

For linux, we provide llvm library, but Windows doesn't have dll, so it's impossible to build a pass.
Even darwin includes dylib library.
It was built easily on Linux and mac.
Not for Windows in the plan?

We really don't support plugins, nor do we intend to support plugins across the Android host platforms. It's just a result of how we build on Linux and Darwin that the shared libraries are available. I'm not sure even if we had a patch that could build libLLVM.dll that we would want to include those binaries in the NDK. It would be a large increase in the binary size of the release, which would have extremely low utilization.

Thanks,
Steve
 

you can check it at the link below.

Darwin prebuilt clang
https://android.googlesource.com/platform/prebuilts/clang/host/darwin-x86/+/refs/heads/ndk-r25-release/clang-r450784d1/lib64/

Windows prebuilt clang
https://android.googlesource.com/platform/prebuilts/clang/host/windows-x86/+/refs/heads/ndk-r25-release/clang-r450784d1/lib64/

Linux prebuilt clang

https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/refs/heads/ndk-r25-release/clang-r450784d1/lib64/


There is also no dll in the following way.
https://android.googlesource.com/toolchain/llvm_android/+/refs/heads/main/README.md


There is no code in do_build.py to create .dll.

def normalize_llvm_host_libs(install_dir: Path, host: hosts.Host, version: Version) -> None: if host.is_linux: libs = {'libLLVM': 'libLLVM-{version}git.so', 'libclang': 'libclang.so.{version}git', 'libclang-cpp': 'libclang-cpp.so.{version}git', 'libc++': 'libc++.so.{version}', 'libc++abi': 'libc++abi.so.{version}' } else: libs = {'libc++': 'libc++.{version}.dylib', 'libc++abi': 'libc++abi.{version}.dylib' }

--
You received this message because you are subscribed to the Google Groups "android-llvm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-llvm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-llvm/7b671e5f-9803-470d-8bd7-cfc6a174c842n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages