Assert when the binary doesn't get created and --run-once is used. #2502

This commit is contained in:
Christoffer Lerno
2025-09-29 00:16:26 +02:00
parent 7d06ca6d35
commit da67cd4eb0
2 changed files with 5 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
- Incorrect nameof on nested struct names. #2492 - Incorrect nameof on nested struct names. #2492
- Issue not correctly aborting compilation on recursive generics. - Issue not correctly aborting compilation on recursive generics.
- Crash during codegen when taking the typeid of an empty enum with associated values. - Crash during codegen when taking the typeid of an empty enum with associated values.
- Assert when the binary doesn't get created and --run-once is used. #2502
### Stdlib changes ### Stdlib changes
- Added generic `InterfaceList` to store a list of values that implement a specific interface - Added generic `InterfaceList` to store a list of values that implement a specific interface

View File

@@ -791,6 +791,10 @@ void compiler_compile(void)
} }
name = scratch_buffer_to_string(); name = scratch_buffer_to_string();
const char *full_path = realpath(scratch_buffer_to_string(), NULL); const char *full_path = realpath(scratch_buffer_to_string(), NULL);
if (!full_path)
{
error_exit("The binary '%s' was unexpectedly not found.", scratch_buffer_to_string());
}
OUTF("Launching %s", name); OUTF("Launching %s", name);
FOREACH(const char *, arg, compiler.build.args) FOREACH(const char *, arg, compiler.build.args)
{ {