Commit 0adf2c3
Use resolved executable path for clang Driver
When ROOT passes "cling4root" as argv[0] to cling, the clang Driver
computes InstalledDir as empty, causing GCC installation detection to
scan "/" instead of the actual prefix. This prevents automatic sysroot
detection on conda-forge, where the GCC installation and sysroot are
at predictable locations relative to the binary.
Use the resolved executable path (ClingBin, obtained via
GetExecutablePath/proc/self/exe) for the Driver constructor so it can
correctly find the GCC installation and compute the sysroot.
This is an upstream of patch https://github.com/conda-forge/root-feedstock/blob/main/recipe/patches/0018-Use-resolved-executable-path-for-clang-Driver.patch
Credits go to Chris Burr
Co-authored-by: Chris Burr <christopher.burr@cern.ch>1 parent 61e7f5b commit 0adf2c3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1478 | 1478 | | |
1479 | 1479 | | |
1480 | 1480 | | |
1481 | | - | |
| 1481 | + | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
| |||
0 commit comments