diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-01 00:03:23 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-10-10 16:12:25 -0400 |
commit | a5020857f31ad6d03bc7c0019551cc28b9e5aad5 (patch) | |
tree | fdf9e08b2c37877e44fb4cdf91cc2ee45c868e6a /mesonbuild/compilers | |
parent | 32b7cbd4a7cd8cffb47c5465301141eaad599eaa (diff) | |
download | meson-a5020857f31ad6d03bc7c0019551cc28b9e5aad5.zip meson-a5020857f31ad6d03bc7c0019551cc28b9e5aad5.tar.gz meson-a5020857f31ad6d03bc7c0019551cc28b9e5aad5.tar.bz2 |
Fix typos discovered by codespell
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 2 | ||||
-rw-r--r-- | mesonbuild/compilers/cpp.py | 6 | ||||
-rw-r--r-- | mesonbuild/compilers/cuda.py | 4 | ||||
-rw-r--r-- | mesonbuild/compilers/d.py | 6 | ||||
-rw-r--r-- | mesonbuild/compilers/fortran.py | 4 | ||||
-rw-r--r-- | mesonbuild/compilers/mixins/clang.py | 4 | ||||
-rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 6 |
7 files changed, 16 insertions, 16 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index dfa551d..a994fdb 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1108,7 +1108,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): def sanity_check(self, work_dir: str, environment: 'Environment') -> None: """Check that this compiler actually works. - This should provide a simple compile/link test. Somthing as simple as: + This should provide a simple compile/link test. Something as simple as: ```python main(): return 0 ``` diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index badd8cc..2e613ec 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -248,7 +248,7 @@ class ClangCPPCompiler(ClangCompiler, CPPCompiler): def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]: # We need to apply the search prefix here, as these link arguments may - # be passed to a differen compiler with a different set of default + # be passed to a different compiler with a different set of default # search paths, such as when using Clang for C/C++ and gfortran for # fortran, search_dir = self._get_search_dirs(env) @@ -262,7 +262,7 @@ class ClangCPPCompiler(ClangCompiler, CPPCompiler): class AppleClangCPPCompiler(ClangCPPCompiler): def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]: # We need to apply the search prefix here, as these link arguments may - # be passed to a differen compiler with a different set of default + # be passed to a different compiler with a different set of default # search paths, such as when using Clang for C/C++ and gfortran for # fortran, search_dir = self._get_search_dirs(env) @@ -416,7 +416,7 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler): def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]: # We need to apply the search prefix here, as these link arguments may - # be passed to a differen compiler with a different set of default + # be passed to a different compiler with a different set of default # search paths, such as when using Clang for C/C++ and gfortran for # fortran, search_dir = self._get_search_dirs(env) diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index af607a5..9a3de48 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -195,7 +195,7 @@ class CudaCompiler(Compiler): a double-quoted string a split-point. Single-quotes do not provide protection against splitting; In fact, after splitting they are \-escaped. Unfortunately, double-quotes don't protect against shell expansion. What follows is a - complex dance to accomodate everybody. + complex dance to accommodate everybody. """ SQ = "'" @@ -319,7 +319,7 @@ class CudaCompiler(Compiler): # follow the name of the option itself by either one of more spaces or an # equals character. When a one-character short name such as -I, -l, and -L # is used, the value of the option may also immediately follow the option - # itself without being seperated by spaces or an equal character. The + # itself without being separated by spaces or an equal character. The # individual values of list options may be separated by commas in a single # instance of the option, or the option may be repeated, or any # combination of these two cases. diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 18a5d68..f550a33 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -353,7 +353,7 @@ class DmdLikeCompilerMixin(CompilerMixinBase): # - arguments like "-L=@rpath/xxx" without a second argument (on Apple platform) # - arguments like "-L=/SUBSYSTEM:CONSOLE (for Windows linker) # - # The logic that follows trys to detect all these cases (some may be missing) + # The logic that follows tries to detect all these cases (some may be missing) # in order to prepend a -L only for the library search paths with a single -L if arg.startswith('-L='): @@ -816,8 +816,8 @@ class LLVMDCompiler(DmdLikeCompilerMixin, DCompiler): return ['--release'] def rsp_file_syntax(self) -> RSPFileSyntax: - # We use `mesonlib.is_windows` here because we want to konw what the - # build machine is, not the host machine. This really means whe whould + # We use `mesonlib.is_windows` here because we want to know what the + # build machine is, not the host machine. This really means we would # have the Environment not the MachineInfo in the compiler. return RSPFileSyntax.MSVC if is_windows() else RSPFileSyntax.GCC diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index 24c41d5..264c035 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -213,7 +213,7 @@ class GnuFortranCompiler(GnuCompiler, FortranCompiler): def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]: # We need to apply the search prefix here, as these link arguments may - # be passed to a differen compiler with a different set of default + # be passed to a different compiler with a different set of default # search paths, such as when using Clang for C/C++ and gfortran for # fortran, search_dir = self._get_search_dirs(env) @@ -484,7 +484,7 @@ class FlangFortranCompiler(ClangCompiler, FortranCompiler): def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]: # We need to apply the search prefix here, as these link arguments may - # be passed to a differen compiler with a different set of default + # be passed to a different compiler with a different set of default # search paths, such as when using Clang for C/C++ and gfortran for # fortran, # XXX: Untested.... diff --git a/mesonbuild/compilers/mixins/clang.py b/mesonbuild/compilers/mixins/clang.py index 133ce96..b3ce7f1 100644 --- a/mesonbuild/compilers/mixins/clang.py +++ b/mesonbuild/compilers/mixins/clang.py @@ -82,7 +82,7 @@ class ClangCompiler(GnuLikeCompiler): def get_compiler_check_args(self, mode: CompileCheckMode) -> T.List[str]: # Clang is different than GCC, it will return True when a symbol isn't - # defined in a header. Specifically this seems ot have something to do + # defined in a header. Specifically this seems to have something to do # with functions that may be in a header on some systems, but not all of # them. `strlcat` specifically with can trigger this. myargs: T.List[str] = ['-Werror=implicit-function-declaration'] @@ -119,7 +119,7 @@ class ClangCompiler(GnuLikeCompiler): @classmethod def use_linker_args(cls, linker: str) -> T.List[str]: # Clang additionally can use a linker specified as a path, which GCC - # (and other gcc-like compilers) cannot. This is becuse clang (being + # (and other gcc-like compilers) cannot. This is because clang (being # llvm based) is retargetable, while GCC is not. # diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 0360fa7..2e46e9d 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -146,7 +146,7 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): return pchname def get_pch_base_name(self, header: str) -> str: - # This needs to be implemented by inherting classes + # This needs to be implemented by inheriting classes raise NotImplementedError def get_pch_use_args(self, pch_dir: str, header: str) -> T.List[str]: @@ -383,7 +383,7 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): class MSVCCompiler(VisualStudioLikeCompiler): - """Spcific to the Microsoft Compilers.""" + """Specific to the Microsoft Compilers.""" def __init__(self, target: str): super().__init__(target) @@ -415,7 +415,7 @@ class MSVCCompiler(VisualStudioLikeCompiler): class ClangClCompiler(VisualStudioLikeCompiler): - """Spcific to Clang-CL.""" + """Specific to Clang-CL.""" def __init__(self, target: str): super().__init__(target) |