Updated
This commit is contained in:
14
scripts/fake-toolchain/Unix/cc
Executable file
14
scripts/fake-toolchain/Unix/cc
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]; then
|
||||
# Cmake determines compiler properties by compiling a test file, so call clang for this case
|
||||
$YCM_CONFIG_GEN_CC_PASSTHROUGH $@
|
||||
|
||||
elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then
|
||||
# Needed to enable clang-specific options for certain build systems (e.g. linux)
|
||||
$YCM_CONFIG_GEN_CC_PASSTHROUGH $@
|
||||
|
||||
else
|
||||
echo "$@" >> $YCM_CONFIG_GEN_CC_LOG
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user