diff mbox series

[committed] libphobos: Fix visibility of std.process.searchPathFor

Message ID 20210510102657.507222-1-ibuclaw@gdcproject.org
State New
Headers show
Series [committed] libphobos: Fix visibility of std.process.searchPathFor | expand

Commit Message

Iain Buclaw May 10, 2021, 10:26 a.m. UTC

This patch adjusts the visibility of std.process.searchPathFor so it can
be used from other modules in the phobos library.  In particular, this
symbol is used by std.file.thisExePath on OpenBSD.

Bootstrapped and regression tested on x86_64-linux-gnu, committed to
mainline and backported to releases/gcc-11.



	* src/MERGE: Merge upstream phobos 32cfe9b61.
 libphobos/src/MERGE         | 2 +-
 libphobos/src/std/process.d | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/libphobos/src/MERGE b/libphobos/src/MERGE
index 6f9740404ef..49622c5c548 100644
--- a/libphobos/src/MERGE
+++ b/libphobos/src/MERGE
@@ -1,4 +1,4 @@ 
 The first line of this file holds the git revision number of the last
 merge done from the dlang/phobos repository.
diff --git a/libphobos/src/std/process.d b/libphobos/src/std/process.d
index 9cbeca8e9a8..63ec49365b9 100644
--- a/libphobos/src/std/process.d
+++ b/libphobos/src/std/process.d
@@ -887,7 +887,7 @@  version (Windows) @system unittest
 // Searches the PATH variable for the given executable file,
 // (checking that it is in fact executable).
 version (Posix)
-private string searchPathFor(in char[] executable)
+package(std) string searchPathFor(in char[] executable)
     @trusted //TODO: @safe nothrow
     import std.algorithm.iteration : splitter;