Merge "Add option to enable clang Asan build." into tizen submit/tizen/20180104.014647
authorwoongsuk cho <ws77.cho@samsung.com>
Tue, 2 Jan 2018 05:24:43 +0000 (05:24 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 2 Jan 2018 05:24:43 +0000 (05:24 +0000)
NativeLauncher/dotnet.debugger
NativeLauncher/inc/log.h
NativeLauncher/launcher/dotnet/dotnet_launcher.cc
NativeLauncher/util/utils.cc
packaging/dotnet-launcher.spec

index 6f57cde..7a89927 100644 (file)
@@ -4,3 +4,4 @@ EXE /home/owner/share/tmp/sdk_tools/lldb/bin/lldb-server
 APP_TYPE dotnet
 EXTRA_KEY __DLP_DEBUG_ARG__
 EXTRA_ENV CORECLR_GDBJIT
+EXTRA_ENV COMPlus_ZapDisable
index 5769204..3315f8e 100644 (file)
 
 #ifndef NO_TIZEN
 #include <dlog.h>
+#define LOGX(fmt, arg...) \
+       ({ do { \
+               dlog_print(DLOG_ERROR, LOG_TAG, fmt, ##arg); \
+       } while (0); })
+
 #else
 #include <stdio.h>
 #define LOGE(fmt, args...) printf(fmt, ##args)
 #define LOGD(fmt, args...) printf(fmt, ##args)
 #define LOGI(fmt, args...) printf(fmt, ##args)
+#define LOGX(fmt, args...) printf(fmt, ##args)
 #endif
 
 #ifdef  LOG_TAG
@@ -43,4 +49,8 @@
 #define _INFO(fmt, args...) LOGI(fmt "\n", ##args)
 #endif
 
+#ifndef _ERRX
+#define _ERRX(fmt, args...) LOGX(fmt "\n", ##args)
+#endif
+
 #endif /* __LOG_H__ */
index f19e5af..36df3ca 100644 (file)
@@ -344,15 +344,6 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i
 
        bool success = false;
        if (launchFunction != nullptr) {
-               std::string cppPath(path);
-
-               if (isManagedAssembly(cppPath) && !isNativeImage(cppPath)) {
-                       size_t extindex = cppPath.size() - 4;
-                       cppPath = cppPath.substr(0, extindex) + ".ni" + cppPath.substr(extindex, 4);
-                       if (!fileNotExist(cppPath))
-                               path = cppPath.c_str();
-               }
-
                success = launchFunction(root, path, argc, argv);
                if (!success)
                        _ERR("Failed to launch Application %s", path);
index d4142eb..f5b9406 100644 (file)
@@ -311,7 +311,7 @@ static void *stdlog(void*)
 
         buf[readSize] = 0;
 
-        _INFO("%s", buf);
+        _ERRX("%s", buf);
     }
 
     return 0;
index 66bb45d..5f233e8 100644 (file)
@@ -120,4 +120,5 @@ ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so
 %if %{use_managed_launcher}
 %{_bindir}/Tizen.Runtime.dll
 %endif
-%caps(cap_sys_admin,cap_setgid=ei) %{_bindir}/dotnet-launcher
+%{_bindir}/dotnet-launcher
+