Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: gd_on on October 11, 2025, 04:30:24 pm

Title: Patch for update.bat
Post by: gd_on on October 11, 2025, 04:30:24 pm
Recent unix-like utilities in Msys2 no more support wilcards (see https://www.msys2.org/news/#2024-11-03-disabling-mingw-w64-wildcard-support-by-default)
So, when building C::B on my PC, strip operations within update.bat do not work as previously. Lines 241-243:
Code
strip "%CB_OUTPUT_DIR%\*.exe"
strip "%CB_OUTPUT_DIR%\*.dll"
strip "%CB_OUTPUT_RESDIR%\plugins\*.dll"
do not work. There is a -w option in strip options, but apparently not done to force this wilcards usage.
A possible patch is to replace those lines by :
Code
for %%F in ("%CB_OUTPUT_DIR%\*.exe") do (strip "%%F")
for %%F in ("%CB_OUTPUT_DIR%\*.dll") do (strip "%%F")
for %%F in ("%CB_OUTPUT_RESDIR%\plugins\*.dll") do (strip "%%F")
Note that, utilities within winlibs distribution (even 15.2 version), until now, continue to work as previously.