Isolate managed precompile race validation

This commit is contained in:
udo
2026-07-18 19:12:53 +00:00
parent 322ffd006f
commit d4ae51f54b
4 changed files with 48 additions and 23 deletions
+6
View File
@@ -1644,6 +1644,12 @@ int precompile_unit_generation()
{
f64 started_at = time_precise();
server_state.config = make_server_settings();
const char* precompile_files_in = getenv("UCE_PRECOMPILE_FILES_IN");
if(precompile_files_in && precompile_files_in[0] != '\0')
server_state.config["PRECOMPILE_FILES_IN"] = precompile_files_in;
const char* precompile_bin_directory = getenv("UCE_PRECOMPILE_BIN_DIRECTORY");
if(precompile_bin_directory && precompile_bin_directory[0] != '\0')
server_state.config["BIN_DIRECTORY"] = precompile_bin_directory;
server_state.config["COMPILER_SYS_PATH"] = cwd_get();
Request background_context;
background_context.server = &server_state;