diff options
author | Josh Soref <jsoref@users.noreply.github.com> | 2017-11-26 05:55:13 +0000 |
---|---|---|
committer | Josh Soref <jsoref@users.noreply.github.com> | 2017-11-26 05:55:13 +0000 |
commit | 9dd4f047af292af8f46558d52fb1bcee74207553 (patch) | |
tree | ecb82ed3059a4bb3a059af4e093614f4c3c22476 /mesonbuild/compilers/compilers.py | |
parent | 8dfc9bf1f5ddaa1f47941c062b8a10f901c45e9a (diff) | |
download | meson-9dd4f047af292af8f46558d52fb1bcee74207553.zip meson-9dd4f047af292af8f46558d52fb1bcee74207553.tar.gz meson-9dd4f047af292af8f46558d52fb1bcee74207553.tar.bz2 |
spelling: occurrence
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 032ca69..7f6a181 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -453,7 +453,7 @@ class CompilerArgs(list): a) Whether an argument can be 'overriden' 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: |