Skip to content

Commit

Permalink
Merge branch 'meson-compile' into meson-ci-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Feb 23, 2024
2 parents d661f1b + f538e1a commit 8a257ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion src/sage/structure/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,7 @@ cdef class RingElement(ModuleElement):
Exponent overflow should throw an :class:`OverflowError` (:trac:`2956`)::
sage: K.<x,y> = AA[] # needs sage.rings.number_field
sage: x^(2^64 + 12345) # needs sage.rings.number_field
sage: x^(2^64 + 12345) # known bug: macos # needs sage.rings.number_field
Traceback (most recent call last):
...
OverflowError: exponent overflow (2147483648)
Expand Down
11 changes: 0 additions & 11 deletions src/sage/structure/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,12 @@ 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 8a257ee

Please sign in to comment.