summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2023-04-07 18:01:31 +0000
committerBrad King <brad.king@kitware.com>2023-05-08 17:22:55 -0400
commit9a72fed7af608780f8e40006ba49f2e20084ac3e (patch)
tree16216a08d0708e80b506291ec383d74af59c9afe /bootstrap
parentb2d689bc5abf027e6650cb8d68c9859249a0ea6f (diff)
downloadcmake-9a72fed7af608780f8e40006ba49f2e20084ac3e.tar.gz
bootstrap: Do not over-quote compiler variables
They may contain flags.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index a006aeee87..f15aff6dc8 100755
--- a/bootstrap
+++ b/bootstrap
@@ -880,7 +880,7 @@ cmake_try_run ()
echo "---------- file -----------------------"
cat "${TESTFILE}"
echo "------------------------------------------"
- "${COMPILER}" ${FLAGS} "${TESTFILE}" -o "${TMPFILE}"
+ ${COMPILER} ${FLAGS} "${TESTFILE}" -o "${TMPFILE}"
RES=$?
if test "${RES}" -ne "0"; then
echo "Test failed to compile"
@@ -1435,13 +1435,13 @@ cd "${cmake_bootstrap_dir}/${TMPFILE}"
if test "${cmake_bootstrap_generator}" = "Ninja"; then
echo '
rule cc
- command = "'"${cmake_c_compiler}"'" '"${cmake_ld_flags} ${cmake_c_flags}"' -o $out $in
+ command = '"${cmake_c_compiler}"' '"${cmake_ld_flags} ${cmake_c_flags}"' -o $out $in
build test: cc test.c
'>"build.ninja"
else
echo '
test: test.c
- "'"${cmake_c_compiler}"'" '"${cmake_ld_flags} ${cmake_c_flags}"' -o test test.c
+ '"${cmake_c_compiler}"' '"${cmake_ld_flags} ${cmake_c_flags}"' -o test test.c
'>"Makefile"
fi
echo '