Added the sdk_tool path to find diagnostics (#459) accepted/tizen/unified/20230710.154005
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Mon, 10 Jul 2023 04:44:46 +0000 (13:44 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 10 Jul 2023 04:44:46 +0000 (13:44 +0900)
Change-Id: Ic3bb7521e5fe8c2f8be39118ab06725e4f91a6e3

NativeLauncher/launcher/exec/corerun.cc

index 29b7234..81fdb0c 100644 (file)
@@ -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"