This enables passing in the names of libraries found in the system LIB paths to cl.exe, and verifies that such libraries are passed to the linker.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for the patch! Just some cosmetic comments:
lib/Driver/Driver.cpp | ||
---|---|---|
934 ↗ | (On Diff #10552) | I would have gone for a name such as "ExistsInLibDir". |
935 ↗ | (On Diff #10552) | This is copied from FindFallback in Tools.cpp. Maybe we should think about a way to factor this out into some utility in llvm::sys.. no need to block this patch on that, though. I think some of the names could be improved, though. PathSegments below could be better named as LibDirs, for example. |
948 ↗ | (On Diff #10552) | Maybe use a range-based for loop? |
985 ↗ | (On Diff #10552) | Since this is a clang-cl specific thing, we should guard this check with "D.IsCLMode()". |