From b1d6defd5a0e417800dd46fb4b28ed014802aae3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 26 Feb 2021 14:49:10 -0800 Subject: [PATCH] configure: Enable matrix type support for clang-11+. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index fda67c353..ceb43fc3e 100644 --- a/configure.ac +++ b/configure.ac @@ -759,6 +759,12 @@ AM_COND_IF([GCC], RB_VAR_PREPEND([CXXFLAGS], ["-flax-vector-conversions"]) ]) +dnl Enables matrix_type attribute for vectors of vectors etc +AM_COND_IF([CLANG11], +[ + RB_VAR_PREPEND([CXXFLAGS], ["-fenable-matrix"]) +]) + dnl dnl Machine Tuning dnl