C++ Logo

sg15

Advanced search

Re: Meeting in Varna?

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Mon, 22 May 2023 22:14:38 +0200
On 22/05/2023 22.02, Ville Voutilainen via SG15 wrote:
> On Mon, 22 May 2023 at 22:56, Gabriel Dos Reis via SG15
> <sg15_at_[hidden]> wrote:
>>
>> [Jens]
>>> Oh, and I'm seeing "--std-info" as a command-line option. I thought
>>> Microsoft, for instance, is using the /xxx option format. Has the use
>>> of "--xxx" been socialized with Microsoft?
>>
>> Not to my knowledge.
>
> Uh huh. This https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options?view=msvc-170
> says "You may use either a forward slash (/) or a dash (-) to specify
> a compiler option."
>
> I ran into that when looking at how to use address sanitizer with MSVC
> in cmake. The instructions
> said "just add -fsanitize=address", and I was all "uh, where's the
> MSVC version of this?", and realized
> that that *is* the MSVC version, too, since MSVC accepts dash options
> as well as slash options.

Ah, cool, that must have changed during the past 2.5 decades or so.

Jens

Received on 2023-05-22 20:14:45