gecko-dev/build/build-clang/revert-llvmorg-18-init-15724-gf11b056c02cc.patch
Mike Hommey e8cbeccebe Bug 1901592 - Revert a LLVM change that affects how llvm-config outputs paths. r=firefox-build-system-reviewers,sergesanspaille
Before trying to address the issue in depth (possibly backporting an
upcoming llvm-config change), let's just revert to something that is
known to work for the moment.

Differential Revision: https://phabricator.services.mozilla.com/D213529
2024-06-13 20:22:24 +00:00

31 lines
1000 B
Diff

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