File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -486,16 +486,15 @@ ExitCode GenerateSingleExecutableBlob(
486486 }
487487 }
488488
489- std::optional<std::string> optional_code_cache =
490- GenerateCodeCache (config.main_path , main_script);
491- if (!optional_code_cache.has_value ()) {
492- FPrintF (stderr, " Cannot generate V8 code cache\n " );
493- return ExitCode::kGenericUserError ;
494- }
495-
496489 std::optional<std::string_view> optional_sv_code_cache;
497490 std::string code_cache;
498491 if (static_cast <bool >(config.flags & SeaFlags::kUseCodeCache )) {
492+ std::optional<std::string> optional_code_cache =
493+ GenerateCodeCache (config.main_path , main_script);
494+ if (!optional_code_cache.has_value ()) {
495+ FPrintF (stderr, " Cannot generate V8 code cache\n " );
496+ return ExitCode::kGenericUserError ;
497+ }
499498 code_cache = optional_code_cache.value ();
500499 optional_sv_code_cache = code_cache;
501500 }
You can’t perform that action at this time.
0 commit comments