File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
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 && \
Original file line number Diff line number Diff line change 11fn 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" ) ;
You can’t perform that action at this time.
0 commit comments