diff --git a/fake-toolchain/Unix/cc b/fake-toolchain/Unix/cc index 03e796105b..0d6417386d 100755 --- a/fake-toolchain/Unix/cc +++ b/fake-toolchain/Unix/cc @@ -1,10 +1,10 @@ #!/bin/sh -if [[ ! -z "$YCM_CONFIG_GEN_CC_PASSTHROUGH" ]]; then +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 [ "$@" = "-v" ]; then +elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then # Needed to enable clang-specific options for certain build systems (e.g. linux) echo "clang version 3.5.0 (fake toolchain)" diff --git a/fake-toolchain/Unix/cxx b/fake-toolchain/Unix/cxx index 3db8744404..fce6a10b62 100755 --- a/fake-toolchain/Unix/cxx +++ b/fake-toolchain/Unix/cxx @@ -1,10 +1,10 @@ #!/bin/sh -if [[ ! -z "$YCM_CONFIG_GEN_CXX_PASSTHROUGH" ]]; then +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_CXX_PASSTHROUGH $@ -elif [ "$@" = "-v" ]; then +elif [ "$1" = "-v" ] || [ "$1" = "--version" ]; then # Needed to enable clang-specific options for certain build systems (e.g. linux) echo "clang version 3.5.0 (fake toolchain)"