Skip to content

Commit

Permalink
Add support for x86_64-unknown-linux-musl Rust target
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Oct 27, 2024
1 parent 27be4e6 commit 538b6a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/rust/cargo/lief-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ const GIT_VERSION: &str = git_version!(
const GH_URL: &str = "https://github.com/lief-project/LIEF/releases/download";
const DEFAULT_S3_URL: &str = "https://lief-rs.s3.fr-par.scw.cloud";

const SUPPORTED_TARGETS: &[&str; 6] = &[
const SUPPORTED_TARGETS: &[&str; 7] = &[
"aarch64-apple-ios",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
Expand Down
2 changes: 2 additions & 0 deletions doc/sphinx/api/rust/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ As of now, the following targets are supported with pre-compilation:
+================================+========================================================+
| ``x86_64-unknown-linux-gnu`` | Regular Linux x86-64 (Ubuntu 19.10, Debian 10, ...) |
+--------------------------------+--------------------------------------------------------+
| ``x86_64-unknown-linux-musl`` | Musl target that allows full static build |
+--------------------------------+--------------------------------------------------------+
| ``aarch64-unknown-linux-gnu`` | Linux aarch64 (Debian 12+) |
+--------------------------------+--------------------------------------------------------+
| ``x86_64-apple-darwin`` | macOS 11+ x86-64 |
Expand Down
2 changes: 2 additions & 0 deletions doc/sphinx/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
* Thanks to :github_user:`Huntragon` Rust bindings can be used without openssl (see: :pr:`1105`)
* Rust precompiled Linux packages are now supported for Debian 10 & Ubuntu 19.10.
Before, they require at least Debian 11 & Ubuntu 20.04
* Add support for the ``x86_64-unknown-linux-musl`` target which allows to
generate full static executable.

:ObjC:

Expand Down

0 comments on commit 538b6a5

Please sign in to comment.