tests: fix `test_always_prefer_c_compiler_for_asm`

Handle the case where `sccache` is installed and used over `ccache`.
pull/11765/head
Benoit Pierre 2 years ago committed by Eli Schwartz
parent 7a3409f3d0
commit 66db4abf32
  1. 2
      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]

Loading…
Cancel
Save