tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

revert-llvmorg-18-init-15724-gf11b056c02cc.patch (1000B)


      1 From a79eb8b6e192b36ded8f7b5b6757326b3d6753bd Mon Sep 17 00:00:00 2001
      2 From: Mike Hommey <mh@glandium.org>
      3 Date: Thu, 13 Jun 2024 15:02:45 +0900
      4 Subject: [PATCH] Revert "[Support] Resolve symlinks in `getMainExecutable()`
      5 on Windows (#76304)"
      6 
      7 This reverts commit f11b056c02cca28fe0b82ec44c59537035100e67.
      8 ---
      9 llvm/lib/Support/Windows/Path.inc | 5 +----
     10 1 file changed, 1 insertion(+), 4 deletions(-)
     11 
     12 diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
     13 index 3e4c1f74161c..2c490848a006 100644
     14 --- a/llvm/lib/Support/Windows/Path.inc
     15 +++ b/llvm/lib/Support/Windows/Path.inc
     16 @@ -154,10 +154,7 @@ std::string getMainExecutable(const char *argv0, void *MainExecAddr) {
     17     return "";
     18 
     19   llvm::sys::path::make_preferred(PathNameUTF8);
     20 -
     21 -  SmallString<256> RealPath;
     22 -  sys::fs::real_path(PathNameUTF8, RealPath);
     23 -  return std::string(RealPath);
     24 +  return std::string(PathNameUTF8.data());
     25 }
     26 
     27 UniqueID file_status::getUniqueID() const {
     28 -- 
     29 2.45.1.2.gf9b0626531