public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libphobos: Fix visibility of std.process.searchPathFor
@ 2021-05-10 10:26 Iain Buclaw
  0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2021-05-10 10:26 UTC (permalink / raw)
  To: gcc-patches

Hi,

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.

Regards,
Iain.

---
libphobos/ChangeLog:

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

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 @@
-e6907ff3e28d3c43469c46df4a0426726ecb8631
+32cfe9b61570d52d9885b0208fd20de0d351b51e
 
 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;
-- 
2.27.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-10 10:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 10:26 [committed] libphobos: Fix visibility of std.process.searchPathFor Iain Buclaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).