Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add a meson build configuration #1910

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b552e46
build: add a meson build configuration
oscarbenjamin Apr 7, 2024
ebf835e
Add missing headers
oscarbenjamin Apr 8, 2024
de1b284
build: actually install libflint
oscarbenjamin Apr 8, 2024
6ae0116
build: use release as the default buildtype
oscarbenjamin Apr 8, 2024
8de98ab
build: build fft_small and assembly with meson
oscarbenjamin Apr 11, 2024
d0e2f70
build: build some tests with meson
oscarbenjamin Apr 11, 2024
1554223
build: fix tests and add -Dtests=enabled option
oscarbenjamin Apr 12, 2024
d6f1e87
build: make meson build files with meson_boostrap
oscarbenjamin Apr 13, 2024
e1132fa
build: generate build for fft_small and assembly
oscarbenjamin Apr 13, 2024
2996ea3
build: add dummy configure script
oscarbenjamin Apr 13, 2024
bccb239
build: fix paths in meson Makefile/configure
oscarbenjamin Apr 14, 2024
bc1ab5b
fix typo
oscarbenjamin Apr 14, 2024
ee38152
build: fix options in dummy configure script
oscarbenjamin Apr 14, 2024
0ae65c7
build: make a generated headers dir in build
oscarbenjamin Apr 14, 2024
27137bf
build: add variables to config.h and flint-config.h
oscarbenjamin Apr 14, 2024
daa719e
build: generate all built headers in meson build
oscarbenjamin Apr 14, 2024
27e2309
build: generate fmpz.c and config.m4 in meson build
oscarbenjamin Apr 14, 2024
b55d477
build: add config.m4.in
oscarbenjamin Apr 14, 2024
b52714f
build: add gmp_internals option to meson build
oscarbenjamin Apr 15, 2024
d88fba3
move mparam check after assembly
oscarbenjamin Apr 15, 2024
8d06fab
don't compile assembly if option disabled
oscarbenjamin Apr 15, 2024
faa848d
build: add pthread and tls options
oscarbenjamin Apr 15, 2024
726909c
build: add most options to meson build
oscarbenjamin Apr 16, 2024
a1a3424
build: Fix Makefile install dep in meson build
oscarbenjamin Apr 20, 2024
853cbee
build: Add make uninstall
oscarbenjamin Apr 20, 2024
b74cd3f
build: fix installing headers in meson build
oscarbenjamin Apr 20, 2024
3254724
build: disable avx2 and avx512 by default
oscarbenjamin Apr 20, 2024
4fbfde5
build: detect fft_small requirements in meson build
oscarbenjamin Apr 20, 2024
3ca5c2e
build: fix fft_small checking
oscarbenjamin Apr 20, 2024
88e6dad
Run config.guess to check for exact CPU
oscarbenjamin Jun 20, 2024
b27e820
Move detection script to config dir
oscarbenjamin Jun 20, 2024
97a96b5
Add CPU configuration tables to meson build
oscarbenjamin Jun 20, 2024
6c5d15d
Enable assembly based on exact_cpu in meson build
oscarbenjamin Jun 22, 2024
fa8fbff
Use exact_cpu to detect FLINT_KNOW_STRONG_ORDER
oscarbenjamin Jun 22, 2024
88baee4
Set FLINT_COVERAGE for coverage build
oscarbenjamin Jun 22, 2024
162be8e
Add --with-ntl in meson build
oscarbenjamin Jun 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions detection/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -183,29 +183,17 @@ endif
fft_small_opt = get_option('fft_small')

fft_small_arm_code = '''
#include <gmp.h>
#if GMP_LIMB_BITS != 64
# error
error
#endif

#include <arm_neon.h>
#if !(defined(__GNUC__) && defined(__ARM_NEON))
# if !(defined(_MSC_VER) && defined(_M_ARM64))
# error
error
# endif
#endif
void main(){};
int main(){return 0;}
albinahlback marked this conversation as resolved.
Show resolved Hide resolved
'''

fft_small_x86_code = '''
#include <gmp.h>
#if GMP_LIMB_BITS != 64
# error
error
#endif

#if defined(__GNUC__)
# include <x86intrin.h>
#elif defined(_MSC_VER)
Expand All @@ -219,7 +207,7 @@ error
# error
error
#endif
void main(){};
int main(){return 0;}
'''

# XXX: Do we need to check ARM64_PATTERN/X86_64_PATTERN?
Expand Down