Summary: | Insufficient compiler information provided by Uses/compiler.mk | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Shane <FreeBSD> |
Component: | Ports Framework | Assignee: | Port Management Team <portmgr> |
Status: | Closed Feedback Timeout | ||
Severity: | Affects Some People | CC: | marino, portmgr, yuri |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Shane
2015-01-31 07:34:00 UTC
Any patches to improve the situation is more than welcome, just keep in mind that populating the _FEATURES macros is time consuming we try to avoid it. Providing the CHOSEN_* might be not that easy as the chosen compiler might not yet be installed when this code is run (like it will add a dependency on clang34 which is not yet installed to we cannot run the command to query this compiler) What if a preset database of compiler information was used? This would only be a few KB of text that could easily be grep'd or preset variables to test, with some conditionals to set all the relevant variables. So if the default compiler is gcc 4.2 and alt compiler is clang 3.1, the requested feature can be searched for in gcc42 clang31 and higher versions until a match is found. Then the chosen compiler can be added to BUILD_DEPENDS, CC/CXX/CPP can be set and chosen compiler and version can be set to match. I'm inclined to close this PR since there's been no feedback in 1 year. As an aside, dports caches this information and it saves a ton of time, but that's easy when you have 1 arch and not like 6. Since, it'd definitely possible to do what FreeBSD@ShaneWare.Biz suggests because DragonFly does exactly that for great performance gains. sorry, didn't mean to close. |