Date: Mon, 26 Aug 2024 20:19:25 +0200
On Mon, Aug 26, 2024 at 12:49:25PM -0500, Jeremy Rifkin via Std-Proposals wrote:
> > Just to point out, EDG also supports __COUNTER__ in GCC and Clang
> emulation modes - it just isn't enabled in standards mode.
>
> Thank you, I'm not very familiar with EDG. I didn't find anything in
> the docs about this and even --no_strict_gnu didn't enable
> __COUNTER__. How do I turn off standards mode?
Use --g++ (or --gnu_version 140200 to emulate a specific GCC version)
--strict_gnu and --no_strict_gnu can then be used to switch between
-std=c++xx and -std=gnu++xx for GCC.
So to emulate gcc 14.2 with -std=c++20 you would use --c++20
--gnu_version 140200 --strict_gnu
Similarly, to emulate clang 18.1.0 with --std=c++20 you would use
--c++20 --clang_version 180100 --strict_gnu
Christof
> > Just to point out, EDG also supports __COUNTER__ in GCC and Clang
> emulation modes - it just isn't enabled in standards mode.
>
> Thank you, I'm not very familiar with EDG. I didn't find anything in
> the docs about this and even --no_strict_gnu didn't enable
> __COUNTER__. How do I turn off standards mode?
Use --g++ (or --gnu_version 140200 to emulate a specific GCC version)
--strict_gnu and --no_strict_gnu can then be used to switch between
-std=c++xx and -std=gnu++xx for GCC.
So to emulate gcc 14.2 with -std=c++20 you would use --c++20
--gnu_version 140200 --strict_gnu
Similarly, to emulate clang 18.1.0 with --std=c++20 you would use
--c++20 --clang_version 180100 --strict_gnu
Christof
-- https://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Received on 2024-08-26 18:19:27