aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2023-05-01 17:18:05 +0200
committerEli Schwartz <eschwartz93@gmail.com>2023-05-03 09:17:09 -0400
commit66db4abf3261d69ad953ae9c37281860909d4133 (patch)
tree91eb4410e192268d54b3455a64ae9420e73f7cbe /unittests
parent7a3409f3d060e3bf4a910fa1374d261f02242bce (diff)
downloadmeson-66db4abf3261d69ad953ae9c37281860909d4133.zip
meson-66db4abf3261d69ad953ae9c37281860909d4133.tar.gz
meson-66db4abf3261d69ad953ae9c37281860909d4133.tar.bz2
tests: fix `test_always_prefer_c_compiler_for_asm`
Handle the case where `sccache` is installed and used over `ccache`.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/allplatformstests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index d6ff3b0..f48bc51 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -1083,7 +1083,7 @@ class AllPlatformTests(BasePlatformTests):
for cmd in self.get_compdb():
# Get compiler
split = split_args(cmd['command'])
- if split[0] == 'ccache':
+ if split[0] in ('ccache', 'sccache'):
compiler = split[1]
else:
compiler = split[0]