mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fix recognition for more platforms, and fixed compile on arm (nw)
This commit is contained in:
parent
658128897c
commit
2e9fa84503
12
makefile
12
makefile
@ -119,18 +119,24 @@ PLATFORM := x86
|
||||
else
|
||||
UNAME := $(shell uname -mps)
|
||||
UNAME_M := $(shell uname -m)
|
||||
UNAME_P := $(shell uname -p)
|
||||
GENIEOS := linux
|
||||
PLATFORM := unknown
|
||||
ifneq ($(filter x86_64,$(UNAME_M)),)
|
||||
ifneq ($(filter x86_64,$(UNAME_P)),)
|
||||
PLATFORM := x86
|
||||
endif
|
||||
ifneq ($(filter %86,$(UNAME_M)),)
|
||||
ifneq ($(filter %86,$(UNAME_P)),)
|
||||
PLATFORM := x86
|
||||
endif
|
||||
ifneq ($(filter arm%,$(UNAME_M)),)
|
||||
PLATFORM := arm
|
||||
endif
|
||||
|
||||
ifneq ($(filter arm%,$(UNAME_P)),)
|
||||
PLATFORM := arm
|
||||
endif
|
||||
ifneq ($(filter powerpc,$(UNAME_P)),)
|
||||
PLATFORM := powerpc
|
||||
endif
|
||||
ifeq ($(firstword $(filter Linux,$(UNAME))),Linux)
|
||||
OS := linux
|
||||
endif
|
||||
|
@ -21,8 +21,10 @@
|
||||
|
||||
/* These input port macros expand to a great deal of code and break compilers */
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 4 || (__GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ >= 4))))
|
||||
#if not(defined(__arm__) || defined(__ARMEL__))
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("O1")
|
||||
#endif
|
||||
#elif defined(_MSC_VER)
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
@ -830,7 +832,9 @@ void construct_core_types(simple_list<input_type_entry> &typelist)
|
||||
construct_core_types_invalid(typelist);
|
||||
}
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 4 || (__GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ >= 4))))
|
||||
#if not(defined(__arm__) || defined(__ARMEL__))
|
||||
#pragma GCC pop_options
|
||||
#endif
|
||||
#elif defined(_MSC_VER)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user