Re: [Mingw-w64-public] Determining mingw runtime version

2022-03-08 Thread sisyphus
On Tue, Mar 8, 2022 at 3:18 AM Stephen Kitt wrote: > > You can ask GCC itself: > > $ x86_64-w64-mingw32-gcc -E -include windows.h - > <<<"__MINGW64_VERSION_MAJOR" | tail -n 1 > 9 > > Nice idea - works fine in a bash shell (cygwin and msys2) for me, but not in a cmd shell. With cmd.exe, there's no

Re: [Mingw-w64-public] Determining mingw runtime version

2022-03-07 Thread Stephen Kitt
Le 07/03/2022 13:34, sisyphus a écrit : On Mon, Mar 7, 2022 at 6:27 PM Gisle Vanem wrote: > A command that displays only the value of __MINGW64_VERSION_MAJOR would > probably suffice. Some .bat-file with: setlocal set %find=%WinDir%\system32\find.exe if %MINGW32%. == . set MINGW32=f:\MinGW32\

Re: [Mingw-w64-public] Determining mingw runtime version

2022-03-07 Thread sisyphus
On Mon, Mar 7, 2022 at 6:27 PM Gisle Vanem wrote: > > > A command that displays only the value of __MINGW64_VERSION_MAJOR would > > probably suffice. > > Some .bat-file with: > > setlocal > set %find=%WinDir%\system32\find.exe > if %MINGW32%. == . set MINGW32=f:\MinGW32\TDM-gcc > > type "%MINGW32

Re: [Mingw-w64-public] Determining mingw runtime version

2022-03-06 Thread Gisle Vanem
sisyphus wrote: Is there a simple command that I can run to see the (mingw-w64) runtime version number - something akin to "gcc -dumpversion" ? A command that displays only the value of __MINGW64_VERSION_MAJOR would probably suffice. Some .bat-file with: setlocal set %find=%WinDir%\system32\

[Mingw-w64-public] Determining mingw runtime version

2022-03-06 Thread sisyphus
Hi, Is there a simple command that I can run to see the (mingw-w64) runtime version number - something akin to "gcc -dumpversion" ? A command that displays only the value of __MINGW64_VERSION_MAJOR would probably suffice. Cheers, Rob ___ Mingw-w64-publ