Skip to content

Commit

Permalink
attempt to build musllinux
Browse files Browse the repository at this point in the history
  • Loading branch information
Congyuwang committed Nov 2, 2024
1 parent 02e4d5c commit bca692e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ jobs:
CFLAGS: "-flto=thin -O3"
CXXFLAGS: "-flto=thin -O3"
RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld"
LLVM_CONFIG_PATH: /root/llvm_config.sh
- name: Install built wheel and test
run: |
pip install rocksdict --no-index --find-links dist --force-reinstall || true
Expand Down Expand Up @@ -351,6 +352,8 @@ jobs:
CFLAGS: "-flto=thin -O3"
CXXFLAGS: "-flto=thin -O3"
RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld"
# https://github.com/rust-lang/rust-bindgen/issues/2360#issuecomment-2367084230
LLVM_CONFIG_PATH: /root/llvm_config.sh
- name: Install built wheel and test
run: |
pip install rocksdict --no-index --find-links dist --force-reinstall || true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ jobs:
CFLAGS: "-flto=thin -O3"
CXXFLAGS: "-flto=thin -O3"
RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld"
# https://github.com/rust-lang/rust-bindgen/issues/2360#issuecomment-2367084230
LLVM_CONFIG_PATH: /root/llvm_config.sh
- name: Install built wheel and test
run: |
pip install rocksdict --no-index --find-links dist --force-reinstall || true
Expand Down Expand Up @@ -351,6 +353,7 @@ jobs:
CFLAGS: "-flto=thin -O3"
CXXFLAGS: "-flto=thin -O3"
RUSTFLAGS: "-Clinker-plugin-lto -Clinker=/usr/local/bin/clang -Clink-arg=-fuse-ld=/usr/local/bin/ld.lld"
LLVM_CONFIG_PATH: /root/llvm_config.sh
- name: Install built wheel and test
run: |
pip install rocksdict --no-index --find-links dist --force-reinstall || true
Expand Down
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ libc = "0.2"
version = "0.22"
features = ["py-clone", "extension-module", "num-bigint"]

# https://github.com/rust-lang/rust-bindgen/issues/2360#issuecomment-2367084230
[build-dependencies]
bindgen = { version = "0.70", default-features = false, features = [
"logging",
"prettyplease",
"static",
] }

[profile.release]
codegen-units = 1
debug = false
Expand Down

0 comments on commit bca692e

Please sign in to comment.