From 509874e40b8e9cb692b73ce3de5ebae23c378dfd Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 25 Mar 2021 20:16:07 -0600 Subject: work around inexplicable enum bug --- yapymake/makefile/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3