You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 stage2 compiler of shecc,
the build system didn't assign the variable correctly, causing the
bootstrapping process to execute the stage1 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.
0 commit comments