diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-25 20:16:07 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-25 20:16:07 -0600 |
commit | 509874e40b8e9cb692b73ce3de5ebae23c378dfd (patch) | |
tree | 05f77bcbf69f80a02f7edeae2c46eac1e7f813af | |
parent | b387cba85947db7101726a9f743f272d6dcea269 (diff) | |
download | yapymake-509874e40b8e9cb692b73ce3de5ebae23c378dfd.tar.gz yapymake-509874e40b8e9cb692b73ce3de5ebae23c378dfd.zip |
work around inexplicable enum bug
-rw-r--r-- | yapymake/makefile/__init__.py | 2 |
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) |