static link moltenvk (#700)

* static link moltenvk

* more

* more

* static freetype
This commit is contained in:
Logan McNaughton 2026-03-31 12:09:06 -06:00 committed by GitHub
parent 11d3e52779
commit de0db4b46d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -157,6 +157,7 @@ jobs:
force-url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ env.LLVM_VERSION }}/LLVM-${{ env.LLVM_VERSION }}-macOS-${{ matrix.llvm }}.tar.xz
- name: Build
run: |
brew install molten-vk
cargo build --release -v --target=${{ matrix.target }}
mkdir output
cp target/${{ matrix.target }}/release/gopher64 output/gopher64-${{ matrix.arch }}

View File

@ -93,7 +93,7 @@ fn main() {
.unwrap();
} else if os == "macos" {
println!("cargo:rustc-link-search=native=/opt/homebrew/opt/freetype/lib");
println!("cargo:rustc-link-lib=freetype");
println!("cargo:rustc-link-lib=static=freetype");
let output = std::process::Command::new("clang")
.args(["--print-runtime-dir"])
@ -104,6 +104,9 @@ fn main() {
println!("cargo:rustc-link-search=native={}", runtime_dir);
println!("cargo:rustc-link-lib=static=clang_rt.osx");
println!("cargo:rustc-link-search=native=/opt/homebrew/opt/molten-vk/lib");
println!("cargo:rustc-link-lib=static=MoltenVK");
}
volk_build.flag("-flto=thin");