mirror of
https://github.com/libretro/mame.git
synced 2025-03-03 00:35:45 +00:00
added makefile variable OPENMP to enable usage of OpenMP (includes vconv support of -fopenmp) [Oliver Stöneberg]
This commit is contained in:
parent
0eae106793
commit
e2a6faf36d
10
makefile
10
makefile
@ -268,6 +268,9 @@ BUILD_MIDILIB = 1
|
||||
# uncomment to enable SSE2 optimized code and SSE2 code generation (implicitly enabled by 64-bit compilers)
|
||||
# SSE2 = 1
|
||||
|
||||
# uncomment to enable OpenMP optimized code
|
||||
# OPENMP = 1
|
||||
|
||||
# specify optimization level or leave commented to use the default
|
||||
# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
|
||||
# OPTIMIZE = 3
|
||||
@ -548,6 +551,13 @@ ifdef SSE2
|
||||
CCOMFLAGS += -msse2
|
||||
endif
|
||||
|
||||
ifdef OPENMP
|
||||
DEFS += -DHAS_OPENMP
|
||||
CCOMFLAGS += -fopenmp
|
||||
else
|
||||
CCOMFLAGS += -Wno-unknown-pragmas
|
||||
endif
|
||||
|
||||
# add a basic set of warnings
|
||||
CCOMFLAGS += \
|
||||
-Wall \
|
||||
|
@ -99,6 +99,7 @@ static const translation_info gcc_translate[] =
|
||||
{ 0, "c++", "" },
|
||||
{ 0, "-flto", "/GL" },
|
||||
{ 0, "-fno-optimize-sibling-calls", "" },
|
||||
{ VS2005, "-fopenmp", "/openmp" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user