Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

Commit

Permalink
Made toolchain scripts POSIX-compliant
Browse files Browse the repository at this point in the history
Tested using dash.

See #19
  • Loading branch information
rdnetto committed Jun 19, 2015
1 parent 355155c commit 6ae9ab0
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/bash
#!/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 [[ "$@" == "-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/bash
#!/bin/sh

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 6ae9ab0

Please sign in to comment.