summaryrefslogtreecommitdiffhomepage
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index e4f4286..e39c48c 100644
--- a/build.rs
+++ b/build.rs
@@ -1,4 +1,4 @@
-// Copyright 2025 Dillution <[email protected]>.
+// Copyright 2025-2026 Dillution <[email protected]>.
//
// This file is part of DPIBreak.
//
@@ -16,6 +16,11 @@
// along with DPIBreak. If not, see <https://www.gnu.org/licenses/>.
fn main() {
+ if std::env::var_os("DPIBREAK_SKIP_BUILD_RS").is_some() {
+ println!("cargo:warning=build.rs skipped (DPIBREAK_SKIP_BUILD_RS is set)");
+ return;
+ }
+
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
if target_os != "windows" {
eprintln!("target_os is not windows");