diff options
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 2 | ||||
| -rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 4 | ||||
| -rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index abf4ef430..fb399b114 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -527,7 +527,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): language: str id: str warn_args: T.Dict[str, T.List[str]] - mode = CompileCheckMode.COMPILE + mode = 'COMPILER' def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str, for_machine: MachineChoice, info: 'MachineInfo', diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index b3c80d440..ca909998b 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -1359,7 +1359,7 @@ class CLikeCompiler(Compiler): @functools.lru_cache(maxsize=None) def can_compile(self, src: 'mesonlib.FileOrString') -> bool: # Files we preprocess can be anything, e.g. .in - if self.mode == CompileCheckMode.PREPROCESS: + if self.mode == 'PREPROCESSOR': return True return super().can_compile(src) @@ -1367,6 +1367,6 @@ class CLikeCompiler(Compiler): if not self.preprocessor: self.preprocessor = copy.copy(self) self.preprocessor.exelist = self.exelist + self.get_preprocess_to_file_args() - self.preprocessor.mode = CompileCheckMode.PREPROCESS + self.preprocessor.mode = 'PREPROCESSOR' self.modes.append(self.preprocessor) return self.preprocessor diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 3dd75754e..810dddd9d 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -182,7 +182,7 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta): return ['/fsanitize=address'] def get_output_args(self, outputname: str) -> T.List[str]: - if self.mode == CompileCheckMode.PREPROCESS: + if self.mode == 'PREPROCESSOR': return ['/Fi' + outputname] if outputname.endswith('.exe'): return ['/Fe' + outputname] |
