Commit eb7375b
committed
Fix the build system to use qemu-user as expected
Although the previous Makefile used the TARGET_EXEC variable to
store the name of an architecture-specific qemu executable, such as
qemu-arm or qemu-riscv32, for compiling the stage 2 compiler of shecc,
the build system didn't assign the variable correctly, causing the
bootstrapping process to execute the stage 1 compiler directly.
The above issue can be observed by running "make VERBOSE=1" to view
all build steps:
$ make VERBOSE=1
...
...
out/shecc-stage1.elf -o out/shecc-stage2.elf src/main.c
...
Therefore, these changes modify Makefile and .mk files to fix this
issue. After specifying the target architecture, the corresponding
.mk file now assigns the TARGET_EXEC variable directly, ensuring
the build system invokes qemu as expected.1 parent 68ef318 commit eb7375b
3 files changed
+11
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 44 | + | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments