static link moltenvk (#700)
* static link moltenvk * more * more * static freetype
This commit is contained in:
parent
11d3e52779
commit
de0db4b46d
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -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 }}
|
||||
|
||||
5
build.rs
5
build.rs
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user