Skip to content

Commit b9bfdc8

Browse files
committed
BLD: move optimization options to project level
1 parent 870eeab commit b9bfdc8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

meson.build

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ project(
33
'c', 'cython', 'fortran',
44
version: '2.0.0',
55
license: 'BSD',
6-
meson_version: '>= 1.1.0',
6+
meson_version: '>= 1.2.0',
7+
default_options : {
8+
'optimization': '2',
9+
# 'fortran_std': 'f2018'
10+
}
11+
712
)
813

914
# Seek the backend
@@ -26,10 +31,11 @@ if fc.get_id() == 'gcc'
2631
# add_global_arguments('-fcheck=bounds', language : 'fortran')
2732
add_global_arguments('-fno-range-check', language : 'fortran')
2833
add_global_arguments('-w', language : 'fortran')
29-
add_global_arguments('-O2', language : 'fortran')
3034
endif
3135

3236

37+
38+
3339
py = import('python').find_installation(pure: false)
3440
py_dep = py.dependency()
3541

0 commit comments

Comments
 (0)