aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-05-05 22:38:41 +0300
committerGitHub <noreply@github.com>2019-05-05 22:38:41 +0300
commit23f831a67497135091bcb44675ff5a7fb9ce8425 (patch)
treeee284561d8d053566a13f82b7e9ee447d765db9b /mesonbuild/backend/backends.py
parenta0cf7ad3d8fbafacb7146488d8e56c301646aa92 (diff)
parent541523eebab8f62b182643296deab26a47117f6f (diff)
downloadmeson-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.py4
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'):