add_subdirectory(src/ToolBox/SOS/lldbplugin)
add_subdirectory(src/pal)
add_subdirectory(src/corefx)
+ add_subdirectory(src/coreclr/hosts/unixcoreruncommon)
add_subdirectory(src/coreclr/hosts/unixcorerun)
add_subdirectory(src/coreclr/hosts/unixcoreconsole)
endif(CLR_CMAKE_PLATFORM_UNIX)
include_directories(../unixcoreruncommon)
set(CORECONSOLE_SOURCES
- ../unixcoreruncommon/coreruncommon.cpp
coreconsole.cpp
)
# Libc turns locks into no-ops if pthread was not loaded into process yet. Loading
# pthread by the process executable ensures that all locks are initialized properly.
target_link_libraries(coreconsole
+ unixcoreruncommon
pthread
)
include_directories(../unixcoreruncommon)
set(CORERUN_SOURCES
- ../unixcoreruncommon/coreruncommon.cpp
corerun.cpp
)
# Libc turns locks into no-ops if pthread was not loaded into process yet. Loading
# pthread by the process executable ensures that all locks are initialized properly.
target_link_libraries(corerun
+ unixcoreruncommon
pthread
)
--- /dev/null
+project(unixcoreruncommon)
+
+add_library(unixcoreruncommon
+ STATIC
+ coreruncommon.cpp
+)
+
+target_link_libraries(unixcoreruncommon)
#include <string>
#include <string.h>
#include <sys/stat.h>
-
-#if defined(__APPLE__)
-#include <mach-o/dyld.h>
-static const char * const coreClrDll = "libcoreclr.dylib";
-#else
-static const char * const coreClrDll = "libcoreclr.so";
-#endif
+#include "coreruncommon.h"
#define SUCCEEDED(Status) ((Status) >= 0)
int managedAssemblyArgc,
const char** managedAssemblyArgv);
+
+#if defined(__APPLE__)
+#include <mach-o/dyld.h>
+static const char * const coreClrDll = "libcoreclr.dylib";
+#else
+static const char * const coreClrDll = "libcoreclr.so";
+#endif
+