C++ Logo

sg15

Advanced search

Re: Meeting in Varna?

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 22 May 2023 23:02:58 +0300
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.

Received on 2023-05-22 20:03:12