forwarded 861096 https://github.com/VcDevel/Vc/pull/165 tag 861096 + patch thanks
In data lunedì 24 aprile 2017 12:05:01 CEST, Aaron M. Ucko ha scritto:
> The vc build for kfreebsd-amd64 (admittedly not a release
> architecture) failed:
>
> CMake Error at CMakeLists.txt:144 (message):
> Unsupported target architecture 'amd64'. No support_???.cpp file exists
> for this architecture.
>
> AFAICT, the issue is that line 137 CMakeLists.txt expects amd64 to
> show up in all caps:
>
> if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "([x3-7]86|AMD64)")
Easy enough, should be fine matching "amd64" too as x86 architecture.
Pull request sent upstream: https://github.com/VcDevel/Vc/pull/165
A copy of the patch is attached for convenience.
Thanks,
--
Pino Toscano--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -134,7 +134,7 @@ if(MIC_FOUND)
endif()
set(_srcs src/const.cpp)
-if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "([x3-7]86|AMD64)")
+if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "([x3-7]86|AMD64|amd64)")
list(APPEND _srcs src/cpuid.cpp src/support_x86.cpp)
vc_compile_for_all_implementations(_srcs src/trigonometric.cpp ONLY SSE2 SSE3 SSSE3 SSE4_1 AVX SSE+XOP+FMA4 AVX+XOP+FMA4 AVX+XOP+FMA AVX+FMA AVX2+FMA+BMI2)
signature.asc
Description: This is a digitally signed message part.

