Debian Codegraph @

build.rs

raw symbols SCIP
1 fn mainrust-analyzer cargo ash 0.38.0+1.3.281 main().() {
2 #[cfg(feature = "linked")]
3 {
4 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/;
5
6 let target_family = envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/::varrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/var().("CARGO_CFG_TARGET_FAMILY").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
7 let target_pointer_width = envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/::varrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/var().("CARGO_CFG_TARGET_POINTER_WIDTH").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
8
9 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("cargo:rerun-if-env-changed=VULKAN_SDK");
10 if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(var) = envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/::varrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/var().("VULKAN_SDK") {
11 let suffix = match (&*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Deref]deref().target_family, &*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Deref]deref().target_pointer_width) {
12 ("windows", "32") => "Lib32",
13 ("windows", "64") => "Lib",
14 _ => "lib",
15 };
16 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("cargo:rustc-link-search={var}/{suffix}");
17 }
18 let lib = match &*rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][Deref]deref().target_family {
19 "windows" => "vulkan-1",
20 _ => "vulkan",
21 };
22 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("cargo:rustc-link-lib={lib}");
23 }
24 }