Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve MacLean <Steve.MacLean@microsoft.com>2020-01-25 01:09:26 +0300
committerGitHub <noreply@github.com>2020-01-25 01:09:26 +0300
commita0cb673c96c1a831536ae0bcc1ebc0a2afe45830 (patch)
tree1b47dfae1aa9089097ab0764a5f5fef2893ebcbd /src/coreclr/crosscomponents.cmake
parent9c130e4863dab0512713e27a8ee44f303af44ebf (diff)
Refactor CMake system to allow cross OS DAC compile (#2054)
* Refactor CMake system to allow cross OS DAC compile Add CLR_CMAKE_HOST_OS Add rules to determine which cross OS combinations are valid Make add_definitions depend on TARGET OS properties. Wherever reasonable make C++ defines depend on runtime target rather than host.
Diffstat (limited to 'src/coreclr/crosscomponents.cmake')
-rw-r--r--src/coreclr/crosscomponents.cmake14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/coreclr/crosscomponents.cmake b/src/coreclr/crosscomponents.cmake
index 8bacac00995..b4769cb59e2 100644
--- a/src/coreclr/crosscomponents.cmake
+++ b/src/coreclr/crosscomponents.cmake
@@ -4,14 +4,18 @@ if(CLR_CMAKE_HOST_ARCH_AMD64 AND CLR_CMAKE_TARGET_ARCH_ARM)
set(FEATURE_CROSSBITNESS 1)
endif(CLR_CMAKE_HOST_ARCH_AMD64 AND CLR_CMAKE_TARGET_ARCH_ARM)
-set (CLR_CROSS_COMPONENTS_LIST
- crossgen
- clrjit
-)
+if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
+ set (CLR_CROSS_COMPONENTS_LIST
+ crossgen
+ clrjit
+ )
+endif()
if(NOT CLR_CMAKE_HOST_LINUX AND NOT FEATURE_CROSSBITNESS)
list (APPEND CLR_CROSS_COMPONENTS_LIST
mscordaccore
- mscordbi
+ if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
+ mscordbi
+ endif (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
)
endif()