[Chapel Merge] Fix detection of include paths for mason system dependencies

Branch: refs/heads/main
Revision: b07d1b3db4f7ee6ed0d411cb24134ddc963679c9
Author: jabraham17
Link: Fix detection of include paths for mason system dependencies by jabraham17 · Pull Request #28537 · chapel-lang/chapel · GitHub
Log Message:
Fix detection of include paths for mason system dependencies (#28537)

Fixes the detection of include paths for mason system dependencies. We
relied on includedir being a valid variable, but that may not always
be defined. The more robust thing to do is use --cflags-only-I

Resolves [Bug]: Mason doesn't get the right include flags for some system dependencies · Issue #28538 · chapel-lang/chapel · GitHub

  • paratest

[Reviewed by @benharsh]

Compare: Comparing a474880aa1b8959118987ade8280f8333477e746...c4646d77fb55da2f3b0db5c735792a5fc2851f3e · chapel-lang/chapel · GitHub

Diff:
M test/mason/mason-system/buildWithSystemDeps.good
M test/mason/mason-system/myDep/src/myDep.chpl
A test/mason/mason-system/myInclude/myHeader.h
M test/mason/mason-system/myMasonPackage/example/example.chpl
M test/mason/mason-system/myMasonPackage/src/myMasonPackage.chpl
M test/mason/mason-system/myMasonPackage/test/Test.chpl
M test/mason/mason-system/myPackages/myWeirdPackage.pc
M test/mason/mason-system/pc.good
M test/mason/mason-system/systemadd.good
M test/mason/pkgconfig-tests/PRECOMP
M tools/mason/MasonBuild.chpl
M tools/mason/MasonExample.chpl
M tools/mason/MasonSystem.chpl
M tools/mason/MasonTest.chpl
https://github.com/chapel-lang/chapel/pull/28537.diff