Backed out changeset 5669c20b0617 (bug 1903669) for causing crashtest failures on...
[gecko.git] / build / build-clang / revert-llvmorg-18-init-15724-gf11b056c02cc.patch
blobf3b256c5c7fdcce31175eb246580c5cd394891ef
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)"
7 This reverts commit f11b056c02cca28fe0b82ec44c59537035100e67.
8 ---
9 llvm/lib/Support/Windows/Path.inc | 5 +----
10 1 file changed, 1 insertion(+), 4 deletions(-)
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 "";
19 llvm::sys::path::make_preferred(PathNameUTF8);
21 - SmallString<256> RealPath;
22 - sys::fs::real_path(PathNameUTF8, RealPath);
23 - return std::string(RealPath);
24 + return std::string(PathNameUTF8.data());
27 UniqueID file_status::getUniqueID() const {
28 --
29 2.45.1.2.gf9b0626531