Re: Testing for unknown flags in different compilers

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

 



> 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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux