diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-05-05 22:38:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-05 22:38:41 +0300 |
commit | 23f831a67497135091bcb44675ff5a7fb9ce8425 (patch) | |
tree | ee284561d8d053566a13f82b7e9ee447d765db9b /mesonbuild/backend/backends.py | |
parent | a0cf7ad3d8fbafacb7146488d8e56c301646aa92 (diff) | |
parent | 541523eebab8f62b182643296deab26a47117f6f (diff) | |
download | meson-23f831a67497135091bcb44675ff5a7fb9ce8425.zip meson-23f831a67497135091bcb44675ff5a7fb9ce8425.tar.gz meson-23f831a67497135091bcb44675ff5a7fb9ce8425.tar.bz2 |
Merge pull request #5339 from dcbaker/clike
Split up the representations of the C and C++ compilers
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index d0b4bb5..0565de3 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -23,7 +23,7 @@ import subprocess from ..mesonlib import MachineChoice, MesonException, OrderedSet from ..mesonlib import classify_unity_sources from ..mesonlib import File -from ..compilers import CompilerArgs, VisualStudioCCompiler +from ..compilers import CompilerArgs, VisualStudioLikeCompiler from collections import OrderedDict import shlex from functools import lru_cache @@ -551,7 +551,7 @@ class Backend: return args extra_args = [] # Compiler-specific escaping is needed for -D args but not for any others - if isinstance(compiler, VisualStudioCCompiler): + if isinstance(compiler, VisualStudioLikeCompiler): # MSVC needs escaping when a -D argument ends in \ or \" for arg in args: if arg.startswith('-D') or arg.startswith('/D'): |