IJPL-442: remove explicit var for metadata embedding

IJ-CR-129069

GitOrigin-RevId: eec62becb7389e9243f4c912717e6cc6b1761be8
This commit is contained in:
Ivan Pashchenko
2024-03-25 22:59:20 +00:00
committed by intellij-monorepo-bot
parent 7441df86c8
commit 987cc772cf
+5 -4
View File
@@ -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()?;
}