added makefile variable OPENMP to enable usage of OpenMP (includes vconv support of -fopenmp) [Oliver Stöneberg]

This commit is contained in:
Oliver Stöneberg 2014-10-01 09:17:09 +00:00
parent 0eae106793
commit e2a6faf36d
2 changed files with 11 additions and 0 deletions

View File

@ -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 \

View File

@ -99,6 +99,7 @@ static const translation_info gcc_translate[] =
{ 0, "c++", "" },
{ 0, "-flto", "/GL" },
{ 0, "-fno-optimize-sibling-calls", "" },
{ VS2005, "-fopenmp", "/openmp" },
{ 0 }
};