summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>2023-07-10 13:44:46 +0900
committerGitHub Enterprise <noreply-CODE@samsung.com>2023-07-10 13:44:46 +0900
commit2154c3e7d2986b75df34809ed478bdceaa86d09b (patch)
tree293de06057af340a8220f97bee09c6a12beb40d5
parent6b5fcf9a102e4bca0458549e8cfefe3d6913fb63 (diff)
downloadlauncher-2154c3e7d2986b75df34809ed478bdceaa86d09b.tar.gz
launcher-2154c3e7d2986b75df34809ed478bdceaa86d09b.tar.bz2
launcher-2154c3e7d2986b75df34809ed478bdceaa86d09b.zip
Added the sdk_tool path to find diagnostics (#459)accepted/tizen/unified/20230710.154005
Change-Id: Ic3bb7521e5fe8c2f8be39118ab06725e4f91a6e3
-rw-r--r--NativeLauncher/launcher/exec/corerun.cc4
1 files changed, 4 insertions, 0 deletions
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"