Skip to content

Commit 56f055d

Browse files
macKoviRobi
mac
authored andcommitted
Make macOS static libraries thin for linking
This just used lipo libftd2xx.a -thin x86_64 -output x86_64/libftd2xx.a lipo libftd2xx.a -thin arm64 -output arm64/libftd2xx.a See rust-lang/cargo#8875 (comment)
1 parent 72ebd81 commit 56f055d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

build.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,15 @@ fn search_path() -> PathBuf {
4848
path.push("build");
4949
}
5050
"macos" => match env::var("CARGO_CFG_TARGET_ARCH").unwrap().as_str() {
51-
"x86_64" | "aarch64" => {
51+
"x86_64" => {
5252
path.push("macos");
5353
path.push("build");
54+
path.push("x86_64");
55+
}
56+
"aarch64" => {
57+
path.push("macos");
58+
path.push("build");
59+
path.push("arm64");
5460
}
5561
target_arch => panic!("Target architecture not supported: {}", target_arch),
5662
},

vendor/macos/build/arm64/libftd2xx.a

372 KB
Binary file not shown.

vendor/macos/build/x86_64/libftd2xx.a

390 KB
Binary file not shown.

0 commit comments

Comments
 (0)