summaryrefslogtreecommitdiff
path: root/dev-cpp/eigen/files/eigen-3.4.0-noansi.patch
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2023-12-10 14:30:23 +0100
committerSam James <sam@gentoo.org>2024-01-20 13:02:02 +0000
commitb450729745055e29dd0a75346cf209a4a2e17a0b (patch)
tree787418867a2422806abb73bb17991c85c828bd0c /dev-cpp/eigen/files/eigen-3.4.0-noansi.patch
parentd9d675eacf52ef7ba2d980478780453b2c8b7f60 (diff)
downloadgentoo-b450729745055e29dd0a75346cf209a4a2e17a0b.tar.gz
gentoo-b450729745055e29dd0a75346cf209a4a2e17a0b.tar.bz2
gentoo-b450729745055e29dd0a75346cf209a4a2e17a0b.zip
dev-cpp/eigen: add 3.4.0-r2, 3.4.9999, 9999 with fixed cuda tests
Automatically detects working compiler. Automatically detects host CUDA arch, can be overriden by setting CUDAARCHS env var. Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34547 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/eigen/files/eigen-3.4.0-noansi.patch')
-rw-r--r--dev-cpp/eigen/files/eigen-3.4.0-noansi.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-cpp/eigen/files/eigen-3.4.0-noansi.patch b/dev-cpp/eigen/files/eigen-3.4.0-noansi.patch
new file mode 100644
index 000000000000..c0ce44445c1d
--- /dev/null
+++ b/dev-cpp/eigen/files/eigen-3.4.0-noansi.patch
@@ -0,0 +1,18 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -184,6 +184,7 @@ if(NOT MSVC)
+ ei_add_cxx_compiler_flag("-wd2304") # disable ICC's "warning #2304: non-explicit constructor with single argument may cause implicit type conversion" produced by -Wnon-virtual-dtor
+
+
++ if(NOT EIGEN_TEST_CXX11)
+ # The -ansi flag must be added last, otherwise it is also used as a linker flag by check_cxx_compiler_flag making it fails
+ # Moreover we should not set both -strict-ansi and -ansi
+ check_cxx_compiler_flag("-strict-ansi" COMPILER_SUPPORT_STRICTANSI)
+@@ -194,6 +195,7 @@ if(NOT MSVC)
+ else()
+ ei_add_cxx_compiler_flag("-ansi")
+ endif()
++ endif()
+
+ if(ANDROID_NDK)
+ ei_add_cxx_compiler_flag("-pie")