diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-07-18 00:48:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-07-18 00:48:20 +0100 |
| commit | e7647175268369b28e96d061dfcd4a3c2a39944d (patch) | |
| tree | 4407651ba9a456b7bf496964612f3e02670cb65a /wscript | |
| parent | e639e3597db2ef2cf0f51e2fcc62725d579927bd (diff) | |
Add check that -fopenmp works (part of github bug #3).
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ # -# Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net> +# Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net> # # 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'] + conf.check_cxx(cxxflags='-fopenmp', msg='Checking that compiler supports -fopenmp') if not conf.env.TARGET_WINDOWS: conf.env.append_value('LINKFLAGS', '-pthread') |
