summaryrefslogtreecommitdiff
path: root/mesonbuild/arglist.py
diff options
context:
space:
mode:
authorAntonin Décimo <antonin.decimo@gmail.com>2021-01-12 22:15:42 +0100
committerEli Schwartz <eschwartz93@gmail.com>2021-01-13 12:53:10 -0500
commit39ede12aa5b27376341df85bc9ec254913f044bd (patch)
treed079bfefe3a9010dd7d7a57dfe207d9b6532b8e8 /mesonbuild/arglist.py
parentccb15bc0e988f4e90b67606eaad9443c7ccac918 (diff)
downloadmeson-39ede12aa5b27376341df85bc9ec254913f044bd.tar.gz
Fix misspells
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
Diffstat (limited to 'mesonbuild/arglist.py')
-rw-r--r--mesonbuild/arglist.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py
index d1d489bfd..23b192414 100644
--- a/mesonbuild/arglist.py
+++ b/mesonbuild/arglist.py
@@ -36,7 +36,7 @@ class Dedup(enum.Enum):
"""What kind of deduplication can be done to compiler args.
- OVERRIDEN - Whether an argument can be 'overridden' by a later argument.
+ OVERRIDDEN - 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 occurrence and add a new one. The
same is true for include paths and library paths with -I and -L.
@@ -50,7 +50,7 @@ class Dedup(enum.Enum):
NO_DEDUP = 0
UNIQUE = 1
- OVERRIDEN = 2
+ OVERRIDDEN = 2
class CompilerArgs(collections.abc.MutableSequence):
@@ -129,13 +129,13 @@ class CompilerArgs(collections.abc.MutableSequence):
dedup = self._can_dedup(a)
if a not in pre_flush_set:
new.append(a)
- if dedup is Dedup.OVERRIDEN:
+ if dedup is Dedup.OVERRIDDEN:
pre_flush_set.add(a)
for a in reversed(self.post):
dedup = self._can_dedup(a)
if a not in post_flush_set:
post_flush.appendleft(a)
- if dedup is Dedup.OVERRIDEN:
+ if dedup is Dedup.OVERRIDDEN:
post_flush_set.add(a)
#pre and post will overwrite every element that is in the container
@@ -219,7 +219,7 @@ class CompilerArgs(collections.abc.MutableSequence):
if arg in cls.dedup2_args or \
arg.startswith(cls.dedup2_prefixes) or \
arg.endswith(cls.dedup2_suffixes):
- return Dedup.OVERRIDEN
+ return Dedup.OVERRIDDEN
if arg in cls.dedup1_args or \
arg.startswith(cls.dedup1_prefixes) or \
arg.endswith(cls.dedup1_suffixes) or \