Skip to content

Commit

Permalink
Use patched Solana LLVM to fix cross-target build
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Dec 15, 2023
1 parent 45111c3 commit ec66923
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -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
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ec66923

Please sign in to comment.