mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
try to deal with some famec compiler issues
This commit is contained in:
parent
0fd6751db8
commit
21299f18ad
2 changed files with 13 additions and 2 deletions
|
@ -35,6 +35,16 @@
|
||||||
#define PICODRIVE_HACK
|
#define PICODRIVE_HACK
|
||||||
// Options //
|
// Options //
|
||||||
|
|
||||||
|
#ifndef FAMEC_NO_GOTOS
|
||||||
|
// computed gotos is a GNU extension
|
||||||
|
#ifndef __GNUC__
|
||||||
|
#define FAMEC_NO_GOTOS
|
||||||
|
#endif
|
||||||
|
// as of 3.3, clang takes over 3h to compile this in computed goto mode..
|
||||||
|
#ifdef __clang__
|
||||||
|
#define FAMEC_NO_GOTOS
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef INLINE
|
#undef INLINE
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
|
@ -73,8 +73,9 @@ LOCAL_SRC_FILES += $(R)unzip/unzip.c $(R)unzip/unzip_stream.c
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += $(R)
|
LOCAL_C_INCLUDES += $(R)
|
||||||
|
|
||||||
|
# note: don't use -O3, causes some NDKs run out of memory while compiling FAME
|
||||||
|
LOCAL_CFLAGS += -Wall -O2 -ffast-math -DNDEBUG
|
||||||
LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
|
LOCAL_CFLAGS += $(addprefix -D,$(DEFINES))
|
||||||
LOCAL_CFLAGS += -Wall -O3 -ffast-math -DNDEBUG
|
|
||||||
LOCAL_LDLIBS := -llog
|
LOCAL_LDLIBS := -llog
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue