[x86/Linux] Disable FEATURE_AVX_SUPPORT (dotnet/coreclr#8335)
authorJonghyun Park <parjong@gmail.com>
Wed, 30 Nov 2016 19:40:17 +0000 (04:40 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 30 Nov 2016 19:40:17 +0000 (20:40 +0100)
* Disable FEATURE_AVX_SUPPORT for x86/Linux

This commit disables FEATURE_AVX_SUPPORT for x86/Linux to fix dotnet/coreclr#8331.

* Disable FEATURE_AVX_SUPPORT only for x86/Linux

* Disable FEATURE_SIMD for x86/Linux

* Simplify nested if in CMakeList.txt

Commit migrated from https://github.com/dotnet/coreclr/commit/9883c466a5c73e3c3a9c6850e795071458abeb3b

src/coreclr/src/jit/CMakeLists.txt

index fb3c1ca..96b8c49 100644 (file)
@@ -7,7 +7,7 @@ include_directories("../inc")
 # Enable the following for UNIX altjit on Windows
 # add_definitions(-DALT_JIT)
 
-if (CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_I386)
+if (CLR_CMAKE_TARGET_ARCH_AMD64 OR (CLR_CMAKE_TARGET_ARCH_I386 AND NOT CLR_CMAKE_PLATFORM_UNIX))
   add_definitions(-DFEATURE_SIMD)
   add_definitions(-DFEATURE_AVX_SUPPORT)
 endif ()