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 22, 2024
2 parents 4cf639a + b578c77 commit 1a439e6
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 35 deletions.
6 changes: 1 addition & 5 deletions src/sage/graphs/graph_decompositions/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
tdlib = cc.find_library('tdlib', required: false)
# Cannot be found via pkg-config
rw = declare_dependency(
dependencies: [
cc.find_library('rw'),
]
)
rw = cc.find_library('rw')

py.install_sources(
'all.py',
Expand Down
7 changes: 2 additions & 5 deletions src/sage/graphs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ mcqd = cc.find_library('mcqd', required: false)
cliquer = cc.find_library('cliquer')

# Cannot be found via pkg-config
planarity = declare_dependency(
dependencies: [
cc.find_library('planarity'),
]
)
planarity = cc.find_library('planarity')

py.install_sources(
'all.py',
'all__sagemath_bliss.py',
Expand Down
6 changes: 1 addition & 5 deletions src/sage/libs/giac/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
giac = declare_dependency(
dependencies: [
cc.find_library('giac', required: false),
]
)
giac = cc.find_library('giac', required: false)

py.install_sources('__init__.py', 'giac.pxd', 'misc.h', subdir : 'sage/libs/giac')

Expand Down
6 changes: 1 addition & 5 deletions src/sage/libs/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
sirocco = declare_dependency(
dependencies: [
cc.find_library('sirocco', required: false),
]
)
sirocco = cc.find_library('sirocco', required: false)
# cannot be found via pkg-config
ecl = cc.find_library('ecl')

Expand Down
6 changes: 1 addition & 5 deletions src/sage/libs/symmetrica/meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Cannot be found by pkg-config
symmetrica = declare_dependency(
dependencies: [
cc.find_library('symmetrica'),
]
)
symmetrica = cc.find_library('symmetrica')

py.install_sources('__init__.py', 'all.py', subdir : 'sage/libs/symmetrica')

Expand Down
6 changes: 1 addition & 5 deletions src/sage/rings/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pthread = declare_dependency(
dependencies: [
cc.find_library('pthread'),
]
)
pthread = cc.find_library('pthread')

py.install_sources(
'__init__.py',
Expand Down
6 changes: 1 addition & 5 deletions src/sage/rings/polynomial/pbori/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
brial = declare_dependency(
dependencies: [
cc.find_library('brial', required: false),
]
)
brial = cc.find_library('brial', required: false)
# Cannot be found via pkg-config
brial_groebner = cc.find_library('brial_groebner')

Expand Down
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 1a439e6

Please sign in to comment.