Summary: | games-strategy/0ad fails to build with recent clang | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | andrewkomnenos |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | UNCONFIRMED --- | ||
Severity: | trivial | CC: | jnerin, jstein |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to fix building 0ad with Clang |
Created attachment 881440 [details, diff] Patch to fix building 0ad with Clang Hello, clang has dropped support for the flag "-fexperimental-new-pass-manager," which 0AD's build process automatically applies when building with clang. This means the build fails with recent clang versions (from my build log: clang-16: error: unknown argument: '-fexperimental-new-pass-manager'). I'm not sure when exactly the flag was removed, but the formerly "experimental" pass manager has been the default since version 13, so there should be no difference from the expected behavior now by removing the flag. I've attached a patch which fixes the problem. It's very trivial, so I don't think copyright is needed. Best.