diff options
Diffstat (limited to 'triscv/scripts/makefile')
| -rw-r--r-- | triscv/scripts/makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/triscv/scripts/makefile b/triscv/scripts/makefile index ff8b185..9e12a18 100644 --- a/triscv/scripts/makefile +++ b/triscv/scripts/makefile @@ -30,9 +30,14 @@ OBJCOPY != [ "$(LLVM)" != "0" ] \ && echo llvm-objcopy \ || echo $(CROSS_COMPILE)objcopy -COMPILER != [ "$(LLVM)" != "0" ] \ - && echo clang --target="$(CROSS_COMPILE)" \ - || echo $(CROSS_COMPILE)gcc +COMPILER != [ -n "$(CROSS_COMPILE)" ] \ + && { \ + [ "$(LLVM)" != "0" ] \ + && echo clang --target="$(CROSS_COMPILE)" \ + || echo $(CROSS_COMPILE)gcc \ + ; \ + } \ + || echo $(CC) OBFLAGS = -std=c17 -g |
