diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-17 22:10:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-17 22:10:38 +0100 |
commit | 6854913aa1a57839328baafb435b84f9baacae65 (patch) | |
tree | 3273ce9a77541e3f4bb905ca47a1d0d2bbe0f4e5 /dev-cpp/xsimd/files | |
parent | a538d5e834cfb040c79291bd02474285e27241b8 (diff) |
gentoo auto-resync : 17:05:2023 - 22:10:37
Diffstat (limited to 'dev-cpp/xsimd/files')
-rw-r--r-- | dev-cpp/xsimd/files/xsimd-11.1.0-c++17.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-cpp/xsimd/files/xsimd-11.1.0-c++17.patch b/dev-cpp/xsimd/files/xsimd-11.1.0-c++17.patch new file mode 100644 index 000000000000..b0c99452cc4e --- /dev/null +++ b/dev-cpp/xsimd/files/xsimd-11.1.0-c++17.patch @@ -0,0 +1,27 @@ +--- a/test/CMakeLists.txt 2023-05-17 19:59:34.023146040 +0200 ++++ b/test/CMakeLists.txt 2023-05-17 20:01:23.021505635 +0200 +@@ -50,20 +50,11 @@ + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder") + # Users may override the c++ standard: + if(NOT DEFINED CMAKE_CXX_STANDARD OR "${CMAKE_CXX_STANDARD}" STREQUAL "") +- if (ENABLE_XTL_COMPLEX) +- CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG) +- if (NOT HAS_CPP14_FLAG) +- message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++14 support when xtl complex support is enabled") +- endif() +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") +- else() +- CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG) +- if (NOT HAS_CPP11_FLAG) +- message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++11 support!") +- else() +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") +- endif() ++ CHECK_CXX_COMPILER_FLAG("-std=c++17" HAS_CPP17_FLAG) ++ if (NOT HAS_CPP17_FLAG) ++ message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++17 support") + endif() ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") + endif() + + if (NOT CROSS_COMPILE_ARM) |