Skip to content

Commit

Permalink
Try to fix doctest on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Feb 22, 2024
1 parent bf0c7f7 commit 57b8a9e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sage/structure/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,23 @@ extension_data = {
}

foreach name, pyx : extension_data
if name == 'element'
# Compile this with -Os because it works around a bug with
# GCC-4.7.3 + Cython 0.19 on Itanium, see Issue #14452. Moreover, it
# actually results in faster code than -O3.
# It's also needed to generate proper OverflowError (see Issue 2956)
extra_cflags = ['-Os']
else
extra_cflags = []
endif

py.extension_module(name,
sources: pyx,
subdir: 'sage/structure',
install: true,
include_directories: [inc_cpython, inc_ext, inc_rings],
dependencies: [py_dep, cysignals, gmp, gmpy2, mpc, mpfr],
c_args: extra_cflags,
)
endforeach

Expand Down

0 comments on commit 57b8a9e

Please sign in to comment.