tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.85k stars 320 forks source link

build_clang script - apple llvm #280

Open Stonedestroyer opened 3 years ago

Stonedestroyer commented 3 years ago

Is it possible you could extend support to build LLVM apple builds with it or specify paths? As I see now it needs some refactoring to use with Apple LLVM even if package is locally, and 12.0.0 doesn't seem to work either latest LLVM. Says not found and can't find it in the debug list that pops up.

igrr commented 2 years ago

Starting from LLVM 12.0 release, the source package links are no longer listed at https://releases.llvm.org/download.html. Instead, the archives are hosted on Github Releases. See for example https://github.com/llvm/llvm-project/releases/tag/llvmorg-12.0.1. Looks like the set_package_link function needs to be updated to handle the case of LLVM 12, or at least allow LLVM_PKG and CLANG_PKG to be overridden via the environment.