Skip to content

Commit

Permalink
PSP2: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed Jan 23, 2017
1 parent 2b4824b commit d57f237
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
23 changes: 12 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ set(FLAGS
"-DINLINE=static inline" "-DSH2_INLINE=static inline"
)
if (BUILD_DEBUG)
list(APPEND FLAGS -O0 -g -DDEBUG)
list(APPEND FLAGS -g -DDEBUG)
else ()
list(APPEND FLAGS -O3 -DNDEBUG)
endif (BUILD_DEBUG)
Expand All @@ -324,17 +324,18 @@ if (BUILD_PSP2)
pfba/cpu/cyclone/Cyclone.s
)
list(APPEND SRC_PFBA ${SRC_PSP2})
list(APPEND FLAGS
-Wl,-q -D__PSP2__
-DBUILD_C68K -DUSE_FILE32API
-marm -mfpu=neon -mcpu=cortex-a9 -march=armv7-a -mfloat-abi=hard -ffast-math
-fno-asynchronous-unwind-tables -funroll-loops
-mword-relocations -fno-unwind-tables -fno-optimize-sibling-calls
-mvectorize-with-neon-quad -funsafe-math-optimizations
-mlittle-endian -munaligned-access
)
list(APPEND FLAGS -Wl,-q -D__PSP2__ -DBUILD_C68K -DUSE_FILE32API)
if (BUILD_DEBUG)
list(APPEND FLAGS -D__PSP2_DEBUG__ -O3) # cyclone doesn't work without optimisations
list(APPEND FLAGS -D__PSP2_DEBUG__ -O1
-marm -mfpu=neon -mcpu=cortex-a9 -march=armv7-a)
else ()
list(APPEND FLAGS
-marm -mfpu=neon -mcpu=cortex-a9 -march=armv7-a -mfloat-abi=hard -ffast-math
-fno-asynchronous-unwind-tables -funroll-loops
-mword-relocations -fno-unwind-tables -fno-optimize-sibling-calls
-mvectorize-with-neon-quad -funsafe-math-optimizations
-mlittle-endian -munaligned-access
)
endif (BUILD_DEBUG)
set(LDFLAGS
SDL2
Expand Down
1 change: 1 addition & 0 deletions pfba/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <psp2/power.h>
#include <psp2/io/dirent.h>
#include <psp2/psp2_utility.h>
#include <sdl2/sdl2_input.h>
int _newlib_heap_size_user = 192 * 1024 * 1024;
#elif __SDL2__
#include <sdl2/sdl2_input.h>
Expand Down

0 comments on commit d57f237

Please sign in to comment.