Initial
Rust validation / Windows x64 build and tests (push) Waiting to run
Rust validation / Formatting (push) Failing after 27s
EonaCat/ci-workflows: SonarQube / sonar (push) Successful in 45s

This commit is contained in:
EonaCat committed 2026-12-04 21:08:34 +01:00
1 parent 2cff35f215
commit 0f7377a1b5
359 files changed
+253980 -74

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
fn main() {
match std::env::var("CARGO_CFG_TARGET_ENV").as_deref() {
Ok("msvc") => {
println!("cargo:rustc-link-arg-bins=/HIGHENTROPYVA:NO");
println!("cargo:rustc-link-arg-bins=/EXPORT:D3D12SDKVersion,DATA");
println!("cargo:rustc-link-arg-bins=/EXPORT:D3D12SDKPath,DATA");
println!("cargo:rustc-link-arg-bins=/DELAYLOAD:d3d12.dll");
println!("cargo:rustc-link-arg-bins=delayimp.lib");
}
_ => {
let out = std::env::var("OUT_DIR").expect("cargo sets OUT_DIR");
let def = std::path::Path::new(&out).join("eonacat-xs-exports.def");
std::fs::write(&def, "EXPORTS\nD3D12SDKVersion DATA\nD3D12SDKPath DATA\n")
.expect("the .def is written into OUT_DIR");
println!("cargo:rustc-link-arg-bins={}", def.display());
println!("cargo:rustc-link-arg-bins=-Wl,--disable-high-entropy-va");
}
}
}