diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2015-10-13 22:17:43 +0300 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2015-10-13 22:17:43 +0300 |
commit | c1bd701e78c96638c4cc85fccb5296e3c498f37b (patch) | |
tree | 4846e80c34f4ca82d0a2c4a6663e26a9f86468c2 /src | |
parent | c1586e674fc2c45cdedcb84ee3dc81cafbef341c (diff) |
Build CoreRT GCSample for Mac
Add check for Darwin OS to enable building the same for Mac
Diffstat (limited to 'src')
-rw-r--r-- | src/Native/CMakeLists.txt | 7 | ||||
-rwxr-xr-x[-rw-r--r--] | src/Native/gen-buildsys-clang.sh | 0 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index f3fc58549..f801d2e75 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -41,6 +41,13 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux) set(CLR_CMAKE_PLATFORM_LINUX 1) endif(CMAKE_SYSTEM_NAME STREQUAL Linux) +if(CMAKE_SYSTEM_NAME STREQUAL Darwin) + set(CLR_CMAKE_PLATFORM_UNIX 1) + set(CLR_CMAKE_PLATFORM_UNIX_TARGET_AMD64 1) + set(CLR_CMAKE_PLATFORM_DARWIN 1) + set(CMAKE_ASM_COMPILE_OBJECT "${CMAKE_C_COMPILER} <FLAGS> <DEFINES> -o <OBJECT> -c <SOURCE>") +endif(CMAKE_SYSTEM_NAME STREQUAL Darwin) + if (CLR_CMAKE_PLATFORM_UNIX) add_definitions(-DPLATFORM_UNIX=1) diff --git a/src/Native/gen-buildsys-clang.sh b/src/Native/gen-buildsys-clang.sh index 9367c3201..9367c3201 100644..100755 --- a/src/Native/gen-buildsys-clang.sh +++ b/src/Native/gen-buildsys-clang.sh |