Skip to content

Commit 1c119e8

Browse files
committed
Compile matrix_gf2e_dense with c++11 std
1 parent 45de009 commit 1c119e8

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

src/sage/matrix/meson.build

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,45 @@ extension_data_cpp = {
143143
foreach name, pyx : extension_data_cpp
144144
override_options = ['cython_language=cpp']
145145
if name in [
146+
'matrix_gf2e_dense',
146147
'matrix_integer_dense',
147148
'matrix_integer_sparse',
148149
'matrix_modn_dense_float',
149150
'matrix_modn_dense_double',
150151
'matrix_modn_sparse',
151152
]
152-
# Temporary workaround for https://github.com/linbox-team/linbox/issues/306
153+
# Temporary workaround for https://github.com/linbox-team/linbox/issues/306 and https://github.com/malb/m4rie/pull/6
153154
override_options += ['cpp_std=c++11']
154155
endif
155156

157+
deps = [
158+
py_dep,
159+
blas,
160+
cypari2,
161+
cysignals,
162+
fflas,
163+
flint,
164+
gd,
165+
givaro,
166+
gmp,
167+
gmpxx,
168+
iml,
169+
linbox,
170+
m,
171+
m4ri,
172+
mpfi,
173+
mpfr,
174+
ntl,
175+
numpy,
176+
pari,
177+
png,
178+
singular,
179+
zlib,
180+
]
181+
if name == 'matrix_gf2e_dense'
182+
deps += [m4rie]
183+
endif
184+
156185
py.extension_module(
157186
name,
158187
sources: pyx,
@@ -167,31 +196,7 @@ foreach name, pyx : extension_data_cpp
167196
inc_rings,
168197
inc_rings_finite,
169198
],
170-
dependencies: [
171-
py_dep,
172-
blas,
173-
cypari2,
174-
cysignals,
175-
fflas,
176-
flint,
177-
gd,
178-
givaro,
179-
gmp,
180-
gmpxx,
181-
iml,
182-
linbox,
183-
m,
184-
m4ri,
185-
m4rie,
186-
mpfi,
187-
mpfr,
188-
ntl,
189-
numpy,
190-
pari,
191-
png,
192-
singular,
193-
zlib,
194-
],
199+
dependencies: deps,
195200
)
196201
endforeach
197202

0 commit comments

Comments
 (0)