2021-12-21 00:21:15 +08:00
|
|
|
llvm/tools/llvm-config/llvm-config.cpp | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2020-11-13 09:31:34 +08:00
|
|
|
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
|
2022-05-17 02:41:53 +08:00
|
|
|
index 8ed88f33ead4..3f2d1b98adcc 100644
|
2020-11-13 09:31:34 +08:00
|
|
|
--- a/llvm/tools/llvm-config/llvm-config.cpp
|
|
|
|
+++ b/llvm/tools/llvm-config/llvm-config.cpp
|
2021-12-21 00:21:15 +08:00
|
|
|
@@ -305,7 +305,7 @@ int main(int argc, char **argv) {
|
2020-11-13 09:31:34 +08:00
|
|
|
// bin dir).
|
|
|
|
sys::fs::make_absolute(CurrentPath);
|
|
|
|
CurrentExecPrefix =
|
|
|
|
- sys::path::parent_path(sys::path::parent_path(CurrentPath)).str();
|
|
|
|
+ sys::path::parent_path(sys::path::parent_path(sys::path::parent_path(CurrentPath))).str();
|
2021-12-21 00:21:15 +08:00
|
|
|
|
2020-11-13 09:31:34 +08:00
|
|
|
// Check to see if we are inside a development tree by comparing to possible
|
|
|
|
// locations (prefix style or CMake style).
|