You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is often needed when supporting builds with multiple compilers. Simply looking at %__cc is not enough since the actual executable might be called differently, but might still be gcc. Or clang.
Doing a substring search is also problematic since "g++" is a substring of "clang++".
So it would be nice if rpm provided a standard macro for this.
Does this make sense for RPM and does %toolchain sound fine? If so, I can work on the actual implementation.
It does seem like the value of %toolchain would have to be set for every compiler specially though.
The text was updated successfully, but these errors were encountered:
Not going into implementation and naming here, but the issue is certainly valid and applies broadly to all sorts of things, including but not limited to compiler flags from %optflags.
This is often needed when supporting builds with multiple compilers. Simply looking at
%__cc
is not enough since the actual executable might be called differently, but might still be gcc. Or clang.Doing a substring search is also problematic since "g++" is a substring of "clang++".
So it would be nice if rpm provided a standard macro for this.
Does this make sense for RPM and does
%toolchain
sound fine? If so, I can work on the actual implementation.It does seem like the value of
%toolchain
would have to be set for every compiler specially though.The text was updated successfully, but these errors were encountered: