summaryrefslogtreecommitdiffstats
path: root/configure.bat
diff options
context:
space:
mode:
authorTarja Sundqvist <[email protected]>2025-06-03 13:43:30 +0300
committerTarja Sundqvist <[email protected]>2025-06-03 13:43:30 +0300
commit4a6a9dcc73b82cd49a846d5eadadc1835d7b0ec8 (patch)
tree2f027d908308b8ad503b746cd9012fbc98ea32f2 /configure.bat
parent3fe9e69e4d7510480544f928e8a07f0f110b2181 (diff)
parent5d8e9a8415562ba004b38508d91e1fa0254c17d3 (diff)
Merge tag 'v6.5.6-lts-lgpl' into 6.56.5
Qt 6.5.6-lts-lgpl release
Diffstat (limited to 'configure.bat')
-rw-r--r--configure.bat7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.bat b/configure.bat
index 32fcdd86264..7e459317511 100644
--- a/configure.bat
+++ b/configure.bat
@@ -83,7 +83,12 @@ set REDO_FILE_PATH=%TOPQTDIR%\config.redo.last
set REDO_TMP_FILE_PATH=%TOPQTDIR%\config.redo.in
set FRESH_REQUESTED_ARG=
if not defined redoing (
- echo.%*>"%OPT_TMP_FILE_PATH%"
+ :: The '.' in 'echo.%*' ensures we don't print "echo is off" when no arguments are passed
+ :: https://devblogs.microsoft.com/oldnewthing/20170802-00/?p=96735
+ :: The space before the '>' makes sure that when we have a digit at the end of the args, we
+ :: don't accidentally concatenate it with the '>' resulting in '0>' or '2>' which redirects
+ :: into the file from a stream different than stdout, leading to broken or empty content.
+ echo.%* >"%OPT_TMP_FILE_PATH%"
cmake -DIN_FILE="%OPT_TMP_FILE_PATH%" -DOUT_FILE="%OPT_FILE_PATH%" -DIGNORE_ARGS=-top-level -P "%QTSRC%\cmake\QtWriteArgsFile.cmake"
) else (