aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/c.py1
-rw-r--r--mesonbuild/compilers/cpp.py1
-rw-r--r--mesonbuild/compilers/cuda.py3
-rw-r--r--mesonbuild/compilers/detect.py3
-rw-r--r--mesonbuild/compilers/objcpp.py1
5 files changed, 0 insertions, 9 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index e56d29e..0a8f814 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -52,7 +52,6 @@ else:
CompilerMixinBase = object
-
class CCompiler(CLikeCompiler, Compiler):
@staticmethod
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index bd893b2..badd8cc 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -554,7 +554,6 @@ class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler):
c_stds += ['c++2a']
g_stds += ['gnu++2a']
-
key = OptionKey('std', machine=self.for_machine, lang=self.language)
opts.update({
key.evolve('eh'): coredata.UserComboOption(
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py
index 485bbfb..af607a5 100644
--- a/mesonbuild/compilers/cuda.py
+++ b/mesonbuild/compilers/cuda.py
@@ -356,7 +356,6 @@ class CudaCompiler(Compiler):
xflags.append(flag)
continue
-
# Handle breakup of flag-values into a flag-part and value-part.
if flag[:1] not in '-/':
# This is not a flag. It's probably a file input. Pass it through.
@@ -425,10 +424,8 @@ class CudaCompiler(Compiler):
# The above should securely handle GCC's -Wl, -Wa, -Wp, arguments.
continue
-
assert val is not None # Should only trip if there is a missing argument.
-
# Take care of the various NVCC-supported flags that need special handling.
flag = self._FLAG_LONG2SHORT_WITHARGS.get(flag,flag)
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py
index efeb83c..a839279 100644
--- a/mesonbuild/compilers/detect.py
+++ b/mesonbuild/compilers/detect.py
@@ -144,7 +144,6 @@ if T.TYPE_CHECKING:
from ..programs import ExternalProgram
-
# Default compilers and linkers
# =============================
@@ -340,7 +339,6 @@ def detect_static_linker(env: 'Environment', compiler: Compiler) -> StaticLinker
_handle_exceptions(popen_exceptions, linkers, 'linker')
-
# Compilers
# =========
@@ -618,7 +616,6 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin
ccache + compiler, version, for_machine, is_cross, info,
exe_wrap, full_version=full_version, linker=linker)
-
_handle_exceptions(popen_exceptions, compilers)
raise EnvironmentException(f'Unknown compiler {compilers}')
diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py
index 6303655..e52068d 100644
--- a/mesonbuild/compilers/objcpp.py
+++ b/mesonbuild/compilers/objcpp.py
@@ -85,7 +85,6 @@ class ClangObjCPPCompiler(ClangCompiler, ObjCPPCompiler):
'2': default_warn_args + ['-Wextra'],
'3': default_warn_args + ['-Wextra', '-Wpedantic']}
-
def get_options(self) -> 'coredata.KeyedOptionDictType':
opts = super().get_options()
opts.update({