From 2154c3e7d2986b75df34809ed478bdceaa86d09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A2=85=ED=97=8C/MDE=20Lab=28SR=29/=EC=82=BC?= =?UTF-8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 10 Jul 2023 13:44:46 +0900 Subject: Added the sdk_tool path to find diagnostics (#459) Change-Id: Ic3bb7521e5fe8c2f8be39118ab06725e4f91a6e3 --- NativeLauncher/launcher/exec/corerun.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NativeLauncher/launcher/exec/corerun.cc b/NativeLauncher/launcher/exec/corerun.cc index 29b7234..81fdb0c 100644 --- a/NativeLauncher/launcher/exec/corerun.cc +++ b/NativeLauncher/launcher/exec/corerun.cc @@ -22,6 +22,7 @@ static const char* CLR_PATH = "/usr/share/dotnet.tizen/netcoreapp"; static const char* TOOL_PATH = "/home/owner/share/.dotnet/tools"; +static const char* DIAGNOSTICS_TOOL_PATH = "/home/owner/share/tmp/sdk_tools/coreclr-diagnostics"; void DisplayUsage() { _SOUT( @@ -119,10 +120,13 @@ int main(int argc, const char* argv[]) { std::string toolDll = "/dotnet-" + arg + ".dll"; std::string searchToolPath1 = toolDllsPath + toolDll; std::string searchToolPath2 = std::string(TOOL_PATH) + toolDll; + std::string searchToolPath3 = std::string(DIAGNOSTICS_TOOL_PATH) + toolDll; if (isFile(searchToolPath1)) { managedAssemblyPath = searchToolPath1; } else if (isFile(searchToolPath2)) { managedAssemblyPath = searchToolPath2; + } else if (isFile(searchToolPath3)) { + managedAssemblyPath = searchToolPath3; } else { _SERR( "Could not execute because dotnet-%s does not exist.\n" -- cgit v1.2.3