Can You Put Comments Into GCC Compiler Options Files?
Ian Lance Taylor
iant@google.com
Wed Feb 23 17:37:00 GMT 2011
Basile Starynkevitch <basile@starynkevitch.net> writes:
> On Tue, 22 Feb 2011 18:09:40 -0800
> Ian Lance Taylor <iant@google.com> wrote:
>>
>> No comments are permitted in the contents of options files read using
>> the @file syntax. The contents of the file are simply interpreted as
>> command line arguments separated by whitespace. Double quotes, single
>> quotes, and backslashes may be used in the usual way to add whitespace
>> to arguments.
>
> Maybe we should change that. Do people find such a change useful for 4.7?
>
> If yes, with what comment lexical syntax? A leading # on a line?
I believe lThese option files were adapted from Windows, and they are
primarily for use on Windows, which has much stricter limits on command
line length than most Unix systems. We should implement whatever
Windows implements.
Ian
More information about the Gcc
mailing list