diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-02-22 13:37:36 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-02-22 13:37:36 +0100 |
commit | 4e15bf1e269ceb51dbbc18df2cfb73952f4028db (patch) | |
tree | 65298996120fa360e8678feee66493e0be7c292e /src/pal | |
parent | b4304b1ad2c0aee2363c3cffb5485d9844f70d73 (diff) | |
parent | d5a6959435a3ce8fbf0217c9b74425c66f4e3aa1 (diff) | |
download | coreclr-4e15bf1e269ceb51dbbc18df2cfb73952f4028db.tar.gz coreclr-4e15bf1e269ceb51dbbc18df2cfb73952f4028db.tar.bz2 coreclr-4e15bf1e269ceb51dbbc18df2cfb73952f4028db.zip |
Merge pull request #3255 from juergenhoetzel/build_script_fixes
Handle CMakeArgs correctly
Diffstat (limited to 'src/pal')
-rwxr-xr-x | src/pal/tools/gen-buildsys-clang.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pal/tools/gen-buildsys-clang.sh b/src/pal/tools/gen-buildsys-clang.sh index 89caf3241c..087a4e107f 100755 --- a/src/pal/tools/gen-buildsys-clang.sh +++ b/src/pal/tools/gen-buildsys-clang.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# This file invokes cmake and generates the build system for gcc. +# This file invokes cmake and generates the build system for Clang. # if [ $# -lt 4 -o $# -gt 8 ] @@ -61,7 +61,7 @@ for i in "${@:5}"; do generator=Ninja ;; *) - __UnprocessedCMakeArgs="$__UnprocessedCMakeArgs $i" + __UnprocessedCMakeArgs="${__UnprocessedCMakeArgs}${__UnprocessedCMakeArgs:+ }$i" esac done @@ -147,5 +147,5 @@ cmake \ "-DCMAKE_EXPORT_COMPILE_COMMANDS=1 " \ "-DCLR_CMAKE_BUILD_TESTS=$build_tests" \ $cmake_extra_defines \ - "$__UnprocessedCMakeArgs" \ + $__UnprocessedCMakeArgs \ "$1" |