Merge pull request #302 from vargad/master

Fixed argument pass problem
This commit is contained in:
Val Markovic 2013-05-08 20:34:45 -07:00
commit 06b1daf1b3

View File

@ -72,9 +72,9 @@ function install {
pushd $build_dir pushd $build_dir
if [[ `uname -s` == "Darwin" ]]; then if [[ `uname -s` == "Darwin" ]]; then
cmake -G "Unix Makefiles" $(python_finder) $1 . $ycm_dir/cpp cmake -G "Unix Makefiles" $(python_finder) "$@" . $ycm_dir/cpp
else else
cmake -G "Unix Makefiles" $1 . $ycm_dir/cpp cmake -G "Unix Makefiles" "$@" . $ycm_dir/cpp
fi fi
make -j $(num_cores) ycm_core make -j $(num_cores) ycm_core
@ -87,7 +87,7 @@ function testrun {
build_dir=`mktemp -d -t ycm_build.XXXXXX` build_dir=`mktemp -d -t ycm_build.XXXXXX`
pushd $build_dir pushd $build_dir
cmake -G "Unix Makefiles" $1 . $ycm_dir/cpp cmake -G "Unix Makefiles" "$@" . $ycm_dir/cpp
make -j $(num_cores) ycm_core_tests make -j $(num_cores) ycm_core_tests
cd ycm/tests cd ycm/tests
LD_LIBRARY_PATH=$ycm_dir/python ./ycm_core_tests LD_LIBRARY_PATH=$ycm_dir/python ./ycm_core_tests