Re: [Mingw-w64-public] Determine whether a mingw-w64 port of gcc is UCRT or MSVCRT

2023-11-10 Thread LIU Hao

在 2023/11/10 14:51, sisyphus 写道:

Given that I have, in my path, a mingw-w64 port of version 13.2.0 of
gcc.exe, is there a gcc command that I can run to determine whether this
gcc uses UCRT ?

I thought that running "gcc --version" would do that - and it does for
Brecht Sanders builds ... but niXman's UCRT and MSVCRT builds both report
the same for "gcc --version".

Is there instead something in "gcc -v" that I should be looking for ?



```
echo '#include ' | x86_64-w64-mingw32-gcc -E -dM -xc - | fgrep _UCRT
```

gives `#define _UCRT` if the headers have been configured to use UCRT by 
default.


--
Best regards,
LIU Hao



OpenPGP_signature
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] Determine whether a mingw-w64 port of gcc is UCRT or MSVCRT

2023-11-09 Thread sisyphus
Given that I have, in my path, a mingw-w64 port of version 13.2.0 of
gcc.exe, is there a gcc command that I can run to determine whether this
gcc uses UCRT ?

I thought that running "gcc --version" would do that - and it does for
Brecht Sanders builds ... but niXman's UCRT and MSVCRT builds both report
the same for "gcc --version".

Is there instead something in "gcc -v" that I should be looking for ?

Cheers,
Rob

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public