Compile cyclone with the host g++ (#110)

This commit is contained in:
Jean-André Santoni 2019-11-16 20:57:30 +07:00 committed by GitHub
parent 28dcfd6f43
commit 2be183efa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
$(LD) ?= $(CC)
TARGET ?= PicoDrive
CFLAGS += -I.
HOST_CC ?= gcc
HOST_CXX ?= g++
ifneq ("$(PLATFORM)", "libretro")
CFLAGS += -Wall -g

View File

@ -181,7 +181,7 @@ $(FR)cpu/cyclone/Cyclone.h:
$(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/$(CYCLONE_CONFIG)
@echo building Cyclone...
@make -C $(R)cpu/cyclone/ CONFIG_FILE=../$(CYCLONE_CONFIG)
@make CC=$(HOST_CC) CXX=$(HOST_CXX) -C $(R)cpu/cyclone/ CONFIG_FILE=../$(CYCLONE_CONFIG)
$(FR)cpu/cyclone/Cyclone.s: $(FR)cpu/cyclone/*.cpp $(FR)cpu/cyclone/*.h