summaryrefslogtreecommitdiff
path: root/clrfeatures.cmake
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-05-10 15:10:22 (GMT)
committerGaurav Khanna <gkhanna@microsoft.com>2017-05-10 15:10:22 (GMT)
commit17468288b4093efc8fea4748ee3c890bf82535bb (patch)
tree659bfd5ab2bdfa26556eed9bf06dcef40e988dd4 /clrfeatures.cmake
parentaa82eb3e057ff6f7853b27749cefd0991625066d (diff)
downloadcoreclr-17468288b4093efc8fea4748ee3c890bf82535bb.zip
coreclr-17468288b4093efc8fea4748ee3c890bf82535bb.tar.gz
coreclr-17468288b4093efc8fea4748ee3c890bf82535bb.tar.bz2
Allow users to enable automatic NI bind fallback via command-line (#11485)
* Add FEATURE_NI_BIND_FALLBACK support * Fix incorrect variable setup * Negate the check condition * Use WIN32 instead of FEATURE_PAL * Check WIN32 first, and FEATURE_NI_BIND_FALLBACK later
Diffstat (limited to 'clrfeatures.cmake')
-rw-r--r--clrfeatures.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/clrfeatures.cmake b/clrfeatures.cmake
index 9991b60..f047c91 100644
--- a/clrfeatures.cmake
+++ b/clrfeatures.cmake
@@ -25,3 +25,11 @@ endif(NOT DEFINED FEATURE_DBGIPC)
if(NOT DEFINED FEATURE_INTERPRETER)
set(FEATURE_INTERPRETER 0)
endif(NOT DEFINED FEATURE_INTERPRETER)
+
+if(NOT WIN32)
+ if(NOT DEFINED FEATURE_NI_BIND_FALLBACK)
+ if(NOT CLR_CMAKE_TARGET_ARCH_AMD64 AND NOT CLR_CMAKE_TARGET_ARCH_ARM64)
+ set(FEATURE_NI_BIND_FALLBACK 1)
+ endif()
+ endif(NOT DEFINED FEATURE_NI_BIND_FALLBACK)
+endif(NOT WIN32)