Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875578 - flag-o-matic.eclass: strip-unsupported-flags tests flags one at a time, which fails with flags that depend on other flags
Summary: flag-o-matic.eclass: strip-unsupported-flags tests flags one at a time, which...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-06 08:27 UTC by marios4
Modified: 2022-10-19 17:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).