Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 875578

Summary: flag-o-matic.eclass: strip-unsupported-flags tests flags one at a time, which fails with flags that depend on other flags
Product: Gentoo Linux Reporter: marios4
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description marios4 2022-10-06 08:27:57 UTC
When a flags requires another flag (for example clang -fwhole-program-vtables requires -flto) it gets stripped even if the requirement is met. This happens because each flag is tested independently. Maybe the easiest way to fix it is by patching the compiler to just ignore those flags when the requirement is not met (or emit a warning instead of an error).