diff options
author | John M. Lindemon <jlindemon@gmail.com> | 2019-02-27 20:13:12 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-02-28 21:02:14 +0200 |
commit | 939c00a9727e2ce47f320dd02aa3952c146406c7 (patch) | |
tree | fddcdadca5c3ab1cb066b7da4a8cfd49d68da071 /mesonbuild/compilers/cuda.py | |
parent | 2d6d242aec2305cf60b4b743cdcc6de5b5d9d8ac (diff) | |
download | meson-939c00a9727e2ce47f320dd02aa3952c146406c7.tar.gz |
Fix nvcc error with threads dependency (4999)
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index d1964fdbf..21fa4984f 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import re, subprocess, os.path +import re, os.path from .. import mlog from ..mesonlib import EnvironmentException, Popen_safe @@ -46,6 +46,9 @@ class CudaCompiler(Compiler): def get_no_stdinc_args(self): return [] + def thread_link_flags(self, environment): + return ['-Xcompiler=-pthread'] + def sanity_check(self, work_dir, environment): mlog.debug('Sanity testing ' + self.get_display_language() + ' compiler:', ' '.join(self.exelist)) mlog.debug('Is cross compiler: %s.' % str(self.is_cross)) |