build: disable shader-cache

This commit is contained in:
chyyran 2023-02-04 03:07:48 -05:00
parent e911f934be
commit 5fce1f5921
3 changed files with 4 additions and 5 deletions

View file

@ -9,7 +9,7 @@ spirv-to-dxil-rs builds a copy of spirv-to-dxil statically from Mesa. Many of th
* [Meson](https://mesonbuild.com/) * [Meson](https://mesonbuild.com/)
* A compatible C and C++ compiler * A compatible C and C++ compiler
* [MSVC 2019 16.11 or later](https://docs.mesa3d.org/install.html) is required to build on Windows. * [MSVC 2019 16.11 or later](https://docs.mesa3d.org/install.html) is required to build on Windows.
* [clang](https://clang.llvm.org/) is required for Linux.
* [Python 3.6](https://www.python.org/) or later. * [Python 3.6](https://www.python.org/) or later.
Lex and Yacc are not required. Additionally, [CMake 3.6](https://cmake.org/) or later is required to run the build script. Lex and Yacc are not required. Additionally, [CMake 3.6](https://cmake.org/) or later is required to run the build script.
@ -18,3 +18,4 @@ Lex and Yacc are not required. Additionally, [CMake 3.6](https://cmake.org/) or
$ git submodule update --init --progress --depth=1 $ git submodule update --init --progress --depth=1
$ cargo build $ cargo build
``` ```

View file

@ -21,9 +21,6 @@ fn main() {
if cfg!(target_os = "windows") { if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=Version"); println!("cargo:rustc-link-lib=Version");
} }
if cfg!(target_os = "linux") {
println!("cargo:rustc-link-lib=stdc++");
}
println!("cargo:rustc-link-search=native={}", object_dst.display()); println!("cargo:rustc-link-search=native={}", object_dst.display());
println!("cargo:rustc-link-lib=static=spirv_to_dxil"); println!("cargo:rustc-link-lib=static=spirv_to_dxil");

View file

@ -41,6 +41,7 @@ set(MESA_EXTRA_FLAGS
-Dshared-llvm=disabled -Dshared-llvm=disabled
-Dplatforms= -Dplatforms=
-Dzlib=disabled -Dzlib=disabled
-Dshader-cache=disabled
) )