summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-02-26 19:42:30 +0100
committerPeter Scheibel <scheibel1@llnl.gov>2019-02-26 12:42:30 -0600
commit42386dbe947b81b65bdfca3523921fbe8cea9819 (patch)
treea69260c2b92befece1c930ce462321095d6af049 /bin
parentad25e7f3b04244bc276a32be3c8d2c10d8466006 (diff)
downloadspack-42386dbe947b81b65bdfca3523921fbe8cea9819.tar.gz
spack-42386dbe947b81b65bdfca3523921fbe8cea9819.tar.bz2
spack-42386dbe947b81b65bdfca3523921fbe8cea9819.tar.xz
spack-42386dbe947b81b65bdfca3523921fbe8cea9819.zip
Use Package.headers for -I options (#10623)
This restores the use of Package.headers when computing -I options for building a package that was added in #8136 and reverted in #10604. #8136 used utility logic that located all header files in an installation prefix, and calculated the -I options as the immediate roots containing those header files. In some cases, for a package containing a directory structure like prefix/ include/ ex1.h subdir/ ex2.h dependents may expect to include ex2.h relative to 'include', and adding 'prefix/include/subdir' as a -I was causing errors, in particular if ex2.h has the same name as a system header. This updates header utility logic to by default return the base "include" directory when it exists, rather than subdirectories. It also makes it possible for package implementers to override Package.headers to return the subdirectory when it is required (for example with libxml2).
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions