Don't use clang for anything except or1k.
authorwhitequark <whitequark@whitequark.org>
Sun, 26 Jul 2015 07:00:58 +0000 (10:00 +0300)
committerwhitequark <whitequark@whitequark.org>
Sun, 26 Jul 2015 07:00:58 +0000 (10:00 +0300)
software/common.mak

index 154e028a1317812f30c254a2627dd0e1a7637d2b..925fafe3b7441db568367ff1070349f0ee3dddda 100644 (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