-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
run_exports has been immensely helpful. Just to summarize it run_exports:
- Allows packages with knowledge of what they need to express it for easy downstream consumption
- Packages that are part of the build can add dependency to
runweakonly happens when the dependency is added tohost(notbuild)stronghappens when a dependency is added tobuildorhost
- Dependencies added can express ABI compatibility
- Packages that are part of the build can add dependency to
However there are still some cases that are not covered. In particular there are cases where a dependency added to build needs to add itself to host, but there is no need to add it to run (in fact this would often be better to avoid). IOW run_exports/strong does not meet this need. Some examples include:
- Header-only dependencies of a package
- Tighter alignment in
build&hostof compiler dependencies (like OpenMP) - Compiler runtime libraries that are statically linked (like
cudart) - Other compiler use cases
Solving these cases would involve a host_exports that allows adding other dependencies to host. Could imagine to use cases for a package providing host_exports
host_exports/weak(default)- Add dependencies to
hostif providing package is added tohost - Solves the header-only dependency case above for a library
- Add dependencies to
host_exports/strong(opt-in)- Add dependencies to
hostif providing package is inbuildorhost - Handles the compiler dependency alignment problem (with OpenMP)
- Handles statically linked compiler libraries (like
cudart) - Of most use for compiler use cases
- Add dependencies to
traversaro, jdblischak, h-vetinari, jjerphan and SylvainCorlay
Metadata
Metadata
Assignees
Labels
No labels