autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing for unknown flags in different compilers


From: David A. Wheeler
Subject: Re: Testing for unknown flags in different compilers
Date: Wed, 19 Feb 2014 18:22:31 -0500 (EST)

> I have been working on a changes whereby an autoconf user can invoke a macro 
> like

AC_WARN_ADD([-Wextra])

> to add user-specified flags to the compiler/linker invocations.
> Ideally we would like 

AC_WARN_ADD([-Wunknown-warning-flag])

> to not add the offending unknown flag.

I like the goal. I wonder if "AC_WARN_ADD" is the right macro name.
After all, this could add any flag or flag sequence, as long as the compiler 
accepts it.

Perhaps another name like "AC_ADD_FLAG_IFVALID" or whatever
would be a better name. I don't care exactly what the *name* is, as long as 
it's clear.

--- David A. Wheeler



reply via email to

[Prev in Thread] Current Thread [Next in Thread]