Skip to content

Commit

Permalink
iOS static link.
Browse files Browse the repository at this point in the history
Fix iOS static link.
  • Loading branch information
songww committed Mar 18, 2021
1 parent 78c8b4b commit 78d0ba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fftw-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ fn main() {
set_var("CFLAGS", format!("-O3 -pipe -isysroot {} -arch {} -miphoneos-version-min=9.0", sysroot.trim(), arch));
let flags = &[&format!("--with-sysroot={}", sysroot.trim()), "--host=arm-apple-darwin"];
build_unix(&out_dir, flags);
println!("cargo:rustc-link-search={}", out_dir.join("lib").display());
println!("cargo:rustc-link-lib=static=fftw3");
println!("cargo:rustc-link-lib=static=fftw3f");
}
"android" => {
},
Expand Down

0 comments on commit 78d0ba9

Please sign in to comment.