Describe the bug
When building riscv64-nemu-interpreter with clang20, there are compiler errors because -c and -E is specified in the same command line in
|
@$(CC) $(CFLAGS) -E $(SO_CFLAGS) -c -o $@.c $< |
To Reproduce
The toolchain used to build NEMU is clang20 from the package manager of Arch Linux.
Configure NEMU with defualt configs, except architecture is set to riscv64 and the compiler is set to clang. And then run make.
Expected behavior
The project should build currently.
Error log or Screenshots
clang: error: argument unused during compilation: '-c' [-Werror,-Wunused-command-line-argument]
make: *** [/home/scratcher/Workspace/NEMU/scripts/build.mk:61: /home/scratcher/Workspace/NEMU/build/obj-riscv64-nemu-interpreter/src/isa/riscv64/instr/decode.o] Error 1
Necessary information on versions
- NEMU version: master branch
Describe the bug
When building riscv64-nemu-interpreter with clang20, there are compiler errors because
-cand-Eis specified in the same command line inNEMU/scripts/build.mk
Line 61 in 790edeb
To Reproduce
The toolchain used to build NEMU is clang20 from the package manager of Arch Linux.
Configure NEMU with defualt configs, except architecture is set to riscv64 and the compiler is set to clang. And then run make.
Expected behavior
The project should build currently.
Error log or Screenshots
Necessary information on versions