From 987cc772cfa1bdfcb7535af14aeffc6364655612 Mon Sep 17 00:00:00 2001 From: Ivan Pashchenko Date: Mon, 25 Mar 2024 17:24:05 +0100 Subject: [PATCH] IJPL-442: remove explicit var for metadata embedding IJ-CR-129069 GitOrigin-RevId: eec62becb7389e9243f4c912717e6cc6b1761be8 --- native/XPlatLauncher/build.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/native/XPlatLauncher/build.rs b/native/XPlatLauncher/build.rs index db49240fb8a5..79dddc081fcd 100644 --- a/native/XPlatLauncher/build.rs +++ b/native/XPlatLauncher/build.rs @@ -62,10 +62,11 @@ fn main_os_specific() -> Result<()> { link_cef_sandbox(&cef_dir)?; write_cef_version(cef_version)?; - let needs_metadata = env::var("XPLAT_LAUNCHER_EMBED_RESOURCES_AND_MANIFEST") - .unwrap_or("0".to_string()); - - if needs_metadata == "1" { + // metadata embedding breaks incremental build due to verbose output of the used tools + // for the convenience of the development we'll avoid this + // for the builds which are explicitly marked as debug by cargo + let is_debug = env::var("DEBUG")? == "true"; + if !is_debug { embed_metadata()?; }