From fc4839ed5c012f28be670af748b3ea5463bea255 Mon Sep 17 00:00:00 2001 From: Reuben D'Netto Date: Fri, 26 Jun 2015 03:53:01 +1000 Subject: [PATCH] Revert "Made toolchain scripts POSIX-compliant" This reverts commit 6ae9ab03717090c123bc17a600569eb1947a5f22. This commit causes builds under Ubuntu to break - see #20 --- fake-toolchain/Unix/cc | 4 ++-- fake-toolchain/Unix/cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fake-toolchain/Unix/cc b/fake-toolchain/Unix/cc index 03e796105b..556f226f98 100755 --- a/fake-toolchain/Unix/cc +++ b/fake-toolchain/Unix/cc @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash 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 [[ "$@" == "-v" ]]; 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..2b302dbdc5 100755 --- a/fake-toolchain/Unix/cxx +++ b/fake-toolchain/Unix/cxx @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash if [[ ! -z "$YCM_CONFIG_GEN_CXX_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 [[ "$@" == "-v" ]]; then # Needed to enable clang-specific options for certain build systems (e.g. linux) echo "clang version 3.5.0 (fake toolchain)"