summaryrefslogtreecommitdiffstats
path: root/platform/osx
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-12-22 12:24:40 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-12-22 12:24:40 +0100
commitbf4d398d4e474dc4aba0e33094d45fb53406d593 (patch)
tree84afa778ecd4f10fca6968d3a37d2659126ee78d /platform/osx
parent074b9d2b3e947a25b7b52b9e32579bba96381da6 (diff)
downloadredot-engine-bf4d398d4e474dc4aba0e33094d45fb53406d593.tar.gz
Do not require OpenMP for non-tools builds (export templates)
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index e8a8319431..5b04ab8826 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -82,7 +82,7 @@ def configure(env):
env['RANLIB'] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-ranlib"
env['AS'] = mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-as"
env.Append(CCFLAGS=['-D__MACPORTS__']) #hack to fix libvpx MM256_BROADCASTSI128_SI256 define
- if (env["openmp"]):
+ if env['tools'] and env['openmp']:
env.Append(CPPFLAGS=['-fopenmp'])
env.Append(LINKFLAGS=['-fopenmp'])