aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libretro
diff options
context:
space:
mode:
authornotaz2013-03-24 22:04:35 +0100
committernotaz2013-03-25 03:45:05 +0200
commit8ad07683d79468d24a5adf3eaf8150cd63982aeb (patch)
tree0d120424efab59f2011e603c2f04c34cead971d2 /Makefile.libretro
parentf23d33868c571ef2a9206223530292e9c3c2709c (diff)
downloadpcsx_rearmed-8ad07683d79468d24a5adf3eaf8150cd63982aeb.tar.gz
pcsx_rearmed-8ad07683d79468d24a5adf3eaf8150cd63982aeb.tar.bz2
pcsx_rearmed-8ad07683d79468d24a5adf3eaf8150cd63982aeb.zip
use gas-preprocessor for ios
imported from https://github.com/yuvi/gas-preprocessor
Diffstat (limited to 'Makefile.libretro')
-rw-r--r--Makefile.libretro4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index d8288f5..f006409 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -27,6 +27,7 @@ endif
CC ?= gcc
CXX ?= g++
AS ?= as
+CC_AS ?= $(CC)
ifeq ($(platform), unix)
TARGET := snes9x_next_libretro.so
@@ -44,6 +45,7 @@ ARCH := arm
CC = clang -arch armv7 -isysroot $(IOSSDK)
CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
+CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon
ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon
HAVE_NEON = 1
@@ -228,7 +230,7 @@ frontend/revision.h: FORCE
@rm $@_
%.o: %.S
- $(CC) $(CFLAGS) -c $^ -o $@
+ $(CC_AS) $(CFLAGS) -c $^ -o $@
%.o: %.s
$(CC) $(ASFLAGS) -c $^ -o $@