Don't use clang for anything except or1k.

This commit is contained in:
whitequark 2015-07-26 10:00:58 +03:00
parent d03dabb460
commit f5cc6fb72d
1 changed files with 5 additions and 0 deletions

View File

@ -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