Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve more cases of 'C compiler cannot compile executables' (#26167)
Sometimes when building Chapel the build system will report something like 'C compiler cannot compile executable'. This can indicate the users system is missing some dependencies, or it can mean that extra arguments are needed to work. This PR improves the ability of chplenv to provide those arguments when needed. Specifically this PR infers when `--sysroot` or `-Wl,-dynamic-linker` need to be passed to clang on linux systems. Testing - [x] tested that MacOS is unaffected - [x] tested on various Linux systems that the output is correct (4 systems: two different linux clusters, hpe-cray-ex, and hpe-apollo) - [x] tested that this patch resolves the issues on the original system that motivated this [Reviewed by @mppf]
- Loading branch information