aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cuda.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-06-10 01:49:16 +0300
committerGitHub <noreply@github.com>2019-06-10 01:49:16 +0300
commit06df6e463f3d7f62676f8f9ce0cf81fbb4058eaf (patch)
treed6e80b4aa73a30e31861d35aa00127fd625fcca8 /mesonbuild/compilers/cuda.py
parent6b4b601eafc5320e62060f39da5acad7c3007942 (diff)
parent6d6af46edcb765d7046533fdad4d03b0c0c9cd64 (diff)
downloadmeson-06df6e463f3d7f62676f8f9ce0cf81fbb4058eaf.zip
meson-06df6e463f3d7f62676f8f9ce0cf81fbb4058eaf.tar.gz
meson-06df6e463f3d7f62676f8f9ce0cf81fbb4058eaf.tar.bz2
Merge pull request #4010 from Ericson2314/purge-cross-conditional-preview
Purge much `is_cross` and `<things>_cross` without changing user interfaces---includes on #5263
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r--mesonbuild/compilers/cuda.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py
index 51a1300..3c38c09 100644
--- a/mesonbuild/compilers/cuda.py
+++ b/mesonbuild/compilers/cuda.py
@@ -15,15 +15,15 @@
import re, os.path
from .. import mlog
-from ..mesonlib import EnvironmentException, Popen_safe
+from ..mesonlib import EnvironmentException, MachineChoice, Popen_safe
from .compilers import (Compiler, cuda_buildtype_args, cuda_optimization_args,
cuda_debug_args, CompilerType, get_gcc_soname_args)
class CudaCompiler(Compiler):
- def __init__(self, exelist, version, is_cross, exe_wrapper=None):
+ def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, exe_wrapper=None):
if not hasattr(self, 'language'):
self.language = 'cuda'
- super().__init__(exelist, version)
+ super().__init__(exelist, version, for_machine)
self.is_cross = is_cross
self.exe_wrapper = exe_wrapper
self.id = 'nvcc'