From: whitequark Date: Sun, 26 Jul 2015 07:00:58 +0000 (+0300) Subject: Don't use clang for anything except or1k. X-Git-Tag: 24jan2021_ls180~2190 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5cc6fb72d8ec570fbff306e5e59c45be12390f3;p=litex.git Don't use clang for anything except or1k. --- diff --git a/software/common.mak b/software/common.mak index 154e028a..925fafe3 100644 --- a/software/common.mak +++ b/software/common.mak @@ -4,8 +4,13 @@ TARGET_PREFIX=$(TRIPLE)- RM ?= rm -f +ifeq ($(CPU),or1k) CC_normal := clang -target $(TRIPLE) CX_normal := clang++ -target $(TRIPLE) +else +CC_normal := $(TARGET_PREFIX)gcc +CX_normal := $(TARGET_PREFIX)g++ +endif AR_normal := $(TARGET_PREFIX)ar LD_normal := $(TARGET_PREFIX)ld OBJCOPY_normal := $(TARGET_PREFIX)objcopy