Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unreal_cpp_bootstrapper/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() -> Result<(), Box<dyn Error>> {

let use_prebuilt = env::var_os("USE_PRECOMPILED_CPP_LOADER")
.map(|e| e == "1")
.unwrap_or(false);
.unwrap_or(true);

let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());

Expand Down
7 changes: 6 additions & 1 deletion unreal_mod_integrator/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ fn main() {
let project_dir = out_dir.join("ModIntegrator");
fs::remove_dir_all(project_dir).unwrap_or(());

let use_prebuilt = env::var_os("USE_PREBUILT_ASSETS").is_some();
// for 4.23/4.27 feature, use USE_PREBUILT_ASSETS environment variable (default 1)
// else always cook now
#[cfg(any(feature = "ue4_23", feature = "ue4_27"))]
let use_prebuilt = env::var_os("USE_PREBUILT_ASSETS").map(|e| e == "1").unwrap_or(true);
#[cfg(not(any(feature = "ue4_23", feature = "ue4_27")))]
let use_prebuilt = false;

if use_prebuilt {
download_release(&out_dir);
Expand Down
Loading