aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-25 20:16:07 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-25 20:16:07 -0600
commit509874e40b8e9cb692b73ce3de5ebae23c378dfd (patch)
tree05f77bcbf69f80a02f7edeae2c46eac1e7f813af
parentb387cba85947db7101726a9f743f272d6dcea269 (diff)
downloadyapymake-509874e40b8e9cb692b73ce3de5ebae23c378dfd.tar.gz
yapymake-509874e40b8e9cb692b73ce3de5ebae23c378dfd.zip
work around inexplicable enum bug
-rw-r--r--yapymake/makefile/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yapymake/makefile/__init__.py b/yapymake/makefile/__init__.py
index 4617047..3407b3c 100644
--- a/yapymake/makefile/__init__.py
+++ b/yapymake/makefile/__init__.py
@@ -191,7 +191,7 @@ class Makefile:
inviolate_sources = [MacroSource.CommandLine, MacroSource.MAKEFLAGS]
if self.args.environment_overrides:
inviolate_sources.append(MacroSource.Environment)
- if source in inviolate_sources:
+ if any(x is source for x in inviolate_sources):
continue
self._macros[name] = (MacroSource.File, value)