| Summary: | toolchain-funcs.eclass should provide a function to query openmp support of the compiler | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Justin Lecher (RETIRED) <jlec> |
| Component: | Eclasses | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Justin Lecher (RETIRED)
2009-03-21 15:43:33 UTC
I thought about something like
--- toolchain-funcs.eclass 2009-03-01 11:05:55.000000000 +0100
+++ toolchain-funcs.eclass.new 2009-03-22 02:18:08.817522416 +0100
@@ -450,3 +450,11 @@
fi
done
}
+
+if [[ -z NEED_OPENMP ]]; then
+ if [[ $(tc-getCC) == *gcc* ]]; then
+ DEPEND="${DEPEND}
+ sys-devel/gcc[openmp]"
+ fi
+fi
+
This must be adapted to other arches and compilers.
no, we have USE=openmp for packages to use (In reply to comment #2) > no, we have USE=openmp for packages to use > That doesn't fix my request. If a package uses USE="openmp" but gcc isn't compiled with openmp or doesn't support openmp because of the version, the package couldn't be compiled with openmp support. Therefor every ebuild which wants to provide openmp support has to query for openmp compatibility of the compiler. I just wnated to move this check to an eclass. You answer is not enough. You can say, no we don't want this check provided as a function in an eclass and every ebuild should have its own code for that. Than that has to be excepted, but not just Wontfix with no argument. then the user shouldnt have added openmp to their USE flags in the first place reopen to close correctly |