aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-27 01:36:43 +0200
committerGitHub <noreply@github.com>2017-11-27 01:36:43 +0200
commit11f1fc913d32adfd15b4d65cb25f06183361781b (patch)
tree4ff0f989596d10839bf5d0bb0afccf6ca789ca25 /mesonbuild/compilers
parent4ca1e8638c3f2bc7411ddc930cc8c995c163bc1a (diff)
parent9775e2b40d5b51af0910c203228c7b9651b07caa (diff)
downloadmeson-11f1fc913d32adfd15b4d65cb25f06183361781b.zip
meson-11f1fc913d32adfd15b4d65cb25f06183361781b.tar.gz
meson-11f1fc913d32adfd15b4d65cb25f06183361781b.tar.bz2
Merge pull request #2690 from jsoref/spelling
Spelling
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/compilers.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 032ca69..7087b3e 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -451,9 +451,9 @@ class CompilerArgs(list):
Returns whether the argument can be safely de-duped. This is dependent
on three things:
- a) Whether an argument can be 'overriden' by a later argument. For
+ a) Whether an argument can be 'overridden' by a later argument. For
example, -DFOO defines FOO and -UFOO undefines FOO. In this case, we
- can safely remove the previous occurance and add a new one. The same
+ can safely remove the previous occurrence and add a new one. The same
is true for include paths and library paths with -I and -L. For
these we return `2`. See `dedup2_prefixes` and `dedup2_args`.
b) Arguments that once specified cannot be undone, such as `-c` or
@@ -511,10 +511,10 @@ class CompilerArgs(list):
continue
i = self.index(each)
if group_start < 0:
- # First occurance of a library
+ # First occurrence of a library
group_start = i
if group_start >= 0:
- # Last occurance of a library
+ # Last occurrence of a library
self.insert(i + 1, '-Wl,--end-group')
self.insert(group_start, '-Wl,--start-group')
return self.compiler.unix_args_to_native(self)
@@ -548,15 +548,15 @@ class CompilerArgs(list):
raise TypeError('can only concatenate list (not "{}") to list'.format(args))
for arg in args:
# If the argument can be de-duped, do it either by removing the
- # previous occurance of it and adding a new one, or not adding the
- # new occurance.
+ # previous occurrence of it and adding a new one, or not adding the
+ # new occurrence.
dedup = self._can_dedup(arg)
if dedup == 1:
# Argument already exists and adding a new instance is useless
if arg in self or arg in pre or arg in post:
continue
if dedup == 2:
- # Remove all previous occurances of the arg and add it anew
+ # Remove all previous occurrences of the arg and add it anew
if arg in self:
self.remove(arg)
if arg in pre:
@@ -605,7 +605,7 @@ class Compiler:
self.exelist = exelist
else:
raise TypeError('Unknown argument to Compiler')
- # In case it's been overriden by a child class already
+ # In case it's been overridden by a child class already
if not hasattr(self, 'file_suffixes'):
self.file_suffixes = lang_suffixes[self.language]
if not hasattr(self, 'can_compile_suffixes'):