From ec669235d46625b3114c1dff62cb8525d79c2fe2 Mon Sep 17 00:00:00 2001 From: Jon C Date: Fri, 15 Dec 2023 14:34:02 +0100 Subject: [PATCH] Use patched Solana LLVM to fix cross-target build --- .gitmodules | 2 +- README.md | 14 -------------- llvm-project | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitmodules b/.gitmodules index a512da93d9..891535c67c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "llvm-project"] path = llvm-project - url = https://github.com/solana-labs/llvm-project + url = https://github.com/joncinque/llvm-project-solana diff --git a/README.md b/README.md index 1acae4d434..8b9013253e 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,6 @@ Build everything for the host machine using `./build`, ie: ## Known issues -### (no targets are registered) - -The final step of cross-compiling zig with zig currently fails due to a linking -error: - -``` -error: ld.lld: Unable to find target for this triple (no targets are registered) -``` - -Since most people will likely only need the compiler working on their host system, -the repo is still useful in its current state. - -You can use the zig compiler at `./out/host/bin/zig` to build Solana programs. - ### -Bsymbolic-functions not supported When building the LLVM fork of Solana, you may get an error building clang: diff --git a/llvm-project b/llvm-project index 038d472bcd..ad0ae9db78 160000 --- a/llvm-project +++ b/llvm-project @@ -1 +1 @@ -Subproject commit 038d472bcd0b82ff768b515cc77dfb1e3a396ca8 +Subproject commit ad0ae9db78a1013467ab28550176178dff7a4a91