From 1495d18a77ab4bb106ba37e96a8758220f402efe Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Sun, 4 Aug 2024 08:07:22 +0200 Subject: [PATCH] Minor fixes --- bootstrap/build.c | 9 +++++++++ bootstrap/entry.S | 15 --------------- 2 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 bootstrap/entry.S diff --git a/bootstrap/build.c b/bootstrap/build.c index 37c39da..bf10c12 100644 --- a/bootstrap/build.c +++ b/bootstrap/build.c @@ -324,6 +324,15 @@ fn void run_tests(Arena* arena, TestOptions const * const test_options, char** e }; run_command((CStringSlice) array_to_slice(arguments), envp); + + if (execution_engine != EXECUTION_ENGINE_INTERPRETER) + { + char* run_arguments[] = { + compile_options.out_path, + 0, + }; + run_command((CStringSlice) array_to_slice(run_arguments), envp); + } } } } diff --git a/bootstrap/entry.S b/bootstrap/entry.S deleted file mode 100644 index b6a70df..0000000 --- a/bootstrap/entry.S +++ /dev/null @@ -1,15 +0,0 @@ -.section .text -.extern entry_point -.global _start -_start: - xor %ebp, %ebp - popq %rdi - mov %rsp, %rsi - and $~0xf, %rsp - pushq %rsp - pushq $0 - call entry_point - mov $231, %eax - xor %edi, %edi - syscall -