Skip to content

Commit

Permalink
Revert "Made toolchain scripts POSIX-compliant"
Browse files Browse the repository at this point in the history
This reverts commit 6ae9ab0.
This commit causes builds under Ubuntu to break - see ycm-core#20
  • Loading branch information
rdnetto committed Jun 25, 2015
1 parent 8c8a43e commit fc4839e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fake-toolchain/Unix/cc
Original file line number Diff line number Diff line change
@@ -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)"

Expand Down
4 changes: 2 additions & 2 deletions fake-toolchain/Unix/cxx
Original file line number Diff line number Diff line change
@@ -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)"

Expand Down

0 comments on commit fc4839e

Please sign in to comment.