projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e639e35
)
Add check that -fopenmp works (part of github bug #3).
author
Carl Hetherington
<cth@carlh.net>
Wed, 17 Jul 2019 23:48:20 +0000
(
00:48
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 17 Jul 2019 23:48:20 +0000
(
00:48
+0100)
wscript
patch
|
blob
|
history
diff --git
a/wscript
b/wscript
index b10aaf28d6c593864c68c91c451cad6cfbeac2af..d35f003474090fcfb70b3c5d1e24a1b8b22ec8cb 100644
(file)
--- a/
wscript
+++ b/
wscript
@@
-1,5
+1,5
@@
#
#
-# Copyright (C) 2012-201
7
Carl Hetherington <cth@carlh.net>
+# Copyright (C) 2012-201
9
Carl Hetherington <cth@carlh.net>
#
# This file is part of libdcp.
#
#
# This file is part of libdcp.
#
@@
-95,6
+95,7
@@
def configure(conf):
if conf.options.enable_openmp:
conf.env.append_value('CXXFLAGS', ['-fopenmp', '-DLIBDCP_OPENMP'])
conf.env.LIB_OPENMP = ['gomp']
if conf.options.enable_openmp:
conf.env.append_value('CXXFLAGS', ['-fopenmp', '-DLIBDCP_OPENMP'])
conf.env.LIB_OPENMP = ['gomp']
+ conf.check_cxx(cxxflags='-fopenmp', msg='Checking that compiler supports -fopenmp')
if not conf.env.TARGET_WINDOWS:
conf.env.append_value('LINKFLAGS', '-pthread')
if not conf.env.TARGET_WINDOWS:
conf.env.append_value('LINKFLAGS', '-pthread')