C++ Logo


Advanced search

Re: Meeting in Varna?

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Mon, 22 May 2023 22:40:17 +0000
The question was specifically about "--xxx", note the double dash (not single dash).

-- Gaby

-----Original Message-----
From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Sent: Monday, May 22, 2023 1:03 PM
To: sg15_at_[hidden]
Cc: René Ferdinand Rivera Morell <grafikrobot_at_[hidden]>; Gabriel Dos Reis <gdr_at_[hidden]>; Herb Sutter <hsutter_at_[hidden]>
Subject: Re: [SG15] Meeting in Varna?

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 22:40:21