https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106572

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> >which blows up the command line for the compilation. 
> 
> You can use a response file and that won't blow up the command line at all.
> 
> That is:
> g++ -Q --help=warnings | tail -n +2 | awk '{print $1}' | tr '\n' ' ' >
> cxxflags.opt
> 
> g++ @cxxflags.opt ....

Oh and you don't need the tr either that is any whitespace in a response file
is will be treated as a seperator.
So just:
g++ -Q --help=warnings | tail -n +2 | awk '{print $1}' > cxxflags.opt

Reply via email to