1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-30 07:21:02 +01:00

45261: _gcc: Detect clang-as-gcc

This commit is contained in:
dana 2020-01-08 17:54:46 -06:00
parent 379d7088d6
commit 4858e868dc
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2020-01-08 dana <dana@dana.is>
* 45261: Completion/Unix/Command/_gcc: Detect clang-as-gcc
2020-01-07 Daniel Shahaf <danielsh@apache.org>
* unposted: Test/X04zlehighlight.ztst: internal: Remove Vim

View file

@ -13,6 +13,11 @@ if [[ "$service" = -value-* ]]; then
args2=()
fi
else
# On some systems (macOS), cc/gcc/g++ are actually clang; treat them accordingly
[[ $service != clang* ]] &&
_pick_variant clang=clang unix --version &&
service=clang-$service
args2=( '*:input file:_files -g "*.([cCmisSoak]|cc|cpp|cxx|ii|k[ih])(-.)"' )
fi