diff --git a/native/XPlatLauncher/src/remote_dev.rs b/native/XPlatLauncher/src/remote_dev.rs index a550771f6e8d..405bbca7e0e4 100644 --- a/native/XPlatLauncher/src/remote_dev.rs +++ b/native/XPlatLauncher/src/remote_dev.rs @@ -517,6 +517,11 @@ fn preload_native_libs(ide_home_dir: &PathBuf) -> Result<()> { use std::collections::BTreeSet; use std::mem; + if is_fips() { + debug!("Unable to use libraries for self-contained distribution with FIPS enabled."); + return Ok(()); + } + let use_libs = parse_bool_env_var("REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS", true)?; if !use_libs { return Ok(()) @@ -614,3 +619,10 @@ fn is_wsl2() -> bool { .map(|x| x.contains("WSL2")) .unwrap_or(false) } + +#[cfg(target_os = "linux")] +fn is_fips() -> bool { + fs::read_to_string("/proc/sys/crypto/fips_enabled") + .map(|x| x.contains("1")) + .unwrap_or(false) +}