Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Unified Diff: runtime/bin/platform_linux.cc

Issue 1145053002: Make Platform.executable return a fully qualified path the the executable (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix comment Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/platform_linux.cc
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc
index f6dfaa17137ee137fce3d3c89f16c13cda733099..8469a21cb22b7a56719da87cc5387fbbb3125bee 100644
--- a/runtime/bin/platform_linux.cc
+++ b/runtime/bin/platform_linux.cc
@@ -5,6 +5,7 @@
#include "platform/globals.h"
#if defined(TARGET_OS_LINUX)
+#include "bin/file.h"
#include "bin/platform.h"
#include <signal.h> // NOLINT
@@ -71,6 +72,11 @@ void Platform::FreeEnvironment(char** env, intptr_t count) {
delete[] env;
}
+
+char* Platform::ResolveExecutablePath() {
+ return File::LinkTarget("/proc/self/exe");
+}
+
} // namespace bin
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698