Commit 9a88ff0
Kostiantyn Lazukin
[Driver] Search for compiler-rt libraries in sysroot/lib if not found in the resource directory
This patch improves support for embedded Linux toolchains with multiple
sysroots, each containing different built-in libraries. If compiler-rt
libraries are not found in the resource directory, the Clang driver will
fallback to searching in the sysroot/lib directory.
This change preserves the standard behavior for regular Linux toolchains
while allowing greater flexibility in toolchains with multiple sysroots.1 parent 4dd7fea commit 9a88ff0
File tree
9 files changed
+13
-0
lines changed- clang
- lib/Driver/ToolChains
- test/Driver
- Inputs
- musl_sysroot_with_builtins/lib
- resource_dir_empty
9 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments