mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03: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)
|
# uncomment to enable SSE2 optimized code and SSE2 code generation (implicitly enabled by 64-bit compilers)
|
||||||
# SSE2 = 1
|
# SSE2 = 1
|
||||||
|
|
||||||
|
# uncomment to enable OpenMP optimized code
|
||||||
|
# OPENMP = 1
|
||||||
|
|
||||||
# specify optimization level or leave commented to use the default
|
# specify optimization level or leave commented to use the default
|
||||||
# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
|
# (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols)
|
||||||
# OPTIMIZE = 3
|
# OPTIMIZE = 3
|
||||||
@ -548,6 +551,13 @@ ifdef SSE2
|
|||||||
CCOMFLAGS += -msse2
|
CCOMFLAGS += -msse2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef OPENMP
|
||||||
|
DEFS += -DHAS_OPENMP
|
||||||
|
CCOMFLAGS += -fopenmp
|
||||||
|
else
|
||||||
|
CCOMFLAGS += -Wno-unknown-pragmas
|
||||||
|
endif
|
||||||
|
|
||||||
# add a basic set of warnings
|
# add a basic set of warnings
|
||||||
CCOMFLAGS += \
|
CCOMFLAGS += \
|
||||||
-Wall \
|
-Wall \
|
||||||
|
@ -99,6 +99,7 @@ static const translation_info gcc_translate[] =
|
|||||||
{ 0, "c++", "" },
|
{ 0, "c++", "" },
|
||||||
{ 0, "-flto", "/GL" },
|
{ 0, "-flto", "/GL" },
|
||||||
{ 0, "-fno-optimize-sibling-calls", "" },
|
{ 0, "-fno-optimize-sibling-calls", "" },
|
||||||
|
{ VS2005, "-fopenmp", "/openmp" },
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user