Displaying 2 results from an estimated 2 matches for "findfromsearchpaths".
2016 Dec 19
2
[lld] RFC: Finding shared libraries on OpenBSD
...n-OpenBSD systems. And the searching code should probably be moved
to its own function.
Index: ELF/DriverUtils.cpp
===================================================================
--- ELF/DriverUtils.cpp (revision 290066)
+++ ELF/DriverUtils.cpp (working copy)
@@ -153,9 +153,34 @@
return findFromSearchPaths(Name.substr(1));
for (StringRef Dir : Config->SearchPaths) {
- if (!Config->Static)
+ if (!Config->Static) {
if (Optional<std::string> S = findFile(Dir, "lib" + Name + ".so"))
return S;
+
+ const StringRef LibName = (Twine("lib...
2016 Dec 20
0
[lld] RFC: Finding shared libraries on OpenBSD
...should probably be moved
> to its own function.
>
>
> Index: ELF/DriverUtils.cpp
> ===================================================================
> --- ELF/DriverUtils.cpp (revision 290066)
> +++ ELF/DriverUtils.cpp (working copy)
> @@ -153,9 +153,34 @@
> return findFromSearchPaths(Name.substr(1));
>
> for (StringRef Dir : Config->SearchPaths) {
> - if (!Config->Static)
> + if (!Config->Static) {
> if (Optional<std::string> S = findFile(Dir, "lib" + Name + ".so"))
> return S;
> +
> + cons...