Skip to content

Commit 3a15aa5

Browse files
committed
fixup
1 parent a2fc24e commit 3a15aa5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Build MacOs with maturin on Python ${{ matrix.python }}
4848
if: startsWith(matrix.os, 'macos')
4949
run: |
50+
brew install gmp
5051
python -m venv venv
5152
ln -s venv/bin/activate
5253
. ./activate
@@ -70,7 +71,6 @@ jobs:
7071
curl -L https://sh.rustup.rs > rustup-init.sh && \
7172
sh rustup-init.sh -y && \
7273
yum -y install openssl-devel && \
73-
ls -la /usr/lib64/*gmp* && \
7474
source $HOME/.cargo/env && \
7575
rustup target add x86_64-unknown-linux-musl && \
7676
rm -rf venv && \

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
fn main() {
2-
#[cfg(windows)]
2+
#[cfg(target_os = "windows")]
33
{
44
println!("cargo:rustc-link-lib=mpir");
55
println!("cargo:rustc-link-search=mpir_gc_x64");
66
}
7-
#[cfg(linux)]
7+
#[cfg(target_os = "linux")]
88
{
99
println!("cargo:rustc-link-lib=libgmp.so.3");
1010
println!("cargo:rustc-link-search=/usr/lib64");
1111
}
12-
#[cfg(macos)]
12+
#[cfg(target_os = "macos")]
1313
{
1414
println!("cargo:rustc-link-lib=gmp");
1515
println!("cargo:rustc-link-search=/opt/homebrew/lib");

0 commit comments

Comments
 (0)