diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a5bfbc2..7fd44f7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 @@ -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 diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 2d980ce..f13207d 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -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 @@ -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 diff --git a/Cargo.toml b/Cargo.toml index b423878..4146579 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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