summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-02-28 14:56:13 -0800
committerEgor Chesakov <Egor.Chesakov@microsoft.com>2018-03-15 11:23:55 -0700
commitc4729ddb3d49a1cda910412d846cb0ec4fe9ad87 (patch)
treeca7906f08afe4d55b2e283b23493fd4f583710af
parent1c5d0281719f2aad04e6738b99c845b4f95c214a (diff)
downloadcoreclr-c4729ddb3d49a1cda910412d846cb0ec4fe9ad87.tar.gz
coreclr-c4729ddb3d49a1cda910412d846cb0ec4fe9ad87.tar.bz2
coreclr-c4729ddb3d49a1cda910412d846cb0ec4fe9ad87.zip
Define FEATURE_UNIX_AMD64_STRUCT_PASSING only when target Unix/AMD64
-rw-r--r--clrdefinitions.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/clrdefinitions.cmake b/clrdefinitions.cmake
index 3a730cfec8..d7583809a2 100644
--- a/clrdefinitions.cmake
+++ b/clrdefinitions.cmake
@@ -204,8 +204,10 @@ if (CLR_CMAKE_PLATFORM_ARCH_AMD64)
endif (CLR_CMAKE_PLATFORM_ARCH_AMD64)
if(CLR_CMAKE_PLATFORM_UNIX_AMD64)
add_definitions(-DFEATURE_MULTIREG_RETURN)
- add_definitions(-DFEATURE_UNIX_AMD64_STRUCT_PASSING)
endif (CLR_CMAKE_PLATFORM_UNIX_AMD64)
+if(CLR_CMAKE_PLATFORM_UNIX AND CLR_CMAKE_TARGET_ARCH_AMD64)
+ add_definitions(-DFEATURE_UNIX_AMD64_STRUCT_PASSING)
+endif(CLR_CMAKE_PLATFORM_UNIX AND CLR_CMAKE_TARGET_ARCH_AMD64)
add_definitions(-DFEATURE_USE_ASM_GC_WRITE_BARRIERS)
if(CLR_CMAKE_PLATFORM_ARCH_AMD64 OR (CLR_CMAKE_PLATFORM_ARCH_ARM64 AND NOT WIN32))
add_definitions(-DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP)