Skip to content

Commit 986840a

Browse files
committed
ENH: Add in more options from legacy_setup
1 parent e50b220 commit 986840a

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

meson.build

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ endif
6868

6969
# Common
7070
common_c_args = cc.get_supported_arguments('-Wno-unused-result') + [
71-
'-DPYTHON', '-DCTRLC=1', '-DUSE_LAPACK=1', '-DDLONG=1'
71+
'-DPYTHON', '-DCTRLC=1'
7272
]
7373
common_includes = [
7474
'scs',
@@ -86,6 +86,25 @@ if is_linux
8686
_deps += cc.find_library('rt', required : true)
8787
endif
8888

89+
if get_option('use_lapack')
90+
common_c_args += '-DUSE_LAPACK=1'
91+
endif
92+
93+
if get_option('use_long')
94+
common_c_args += '-DDLONG=1'
95+
endif
96+
97+
if get_option('use_singleprec')
98+
common_c_args += '-DSFLOAT=1'
99+
endif
100+
101+
if get_option('use_blas64')
102+
common_c_args += '-DBLAS64=1'
103+
endif
104+
105+
if get_option('use_extraverbose')
106+
common_c_args += '-DVERBOSITY=999'
107+
endif
89108
# Sources
90109
scs_core_sources = files(
91110
'scs_source/src/aa.c',

meson.options

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ option('use_openmp', type: 'boolean',
99
value: false, description: 'Compile SCS with OpenMP parallelization enabled. This can make SCS faster, but requires a compiler with openMP support, the user must control how many threads OpenMP uses')
1010
option('sdist_mode', type: 'boolean', value: false,
1111
description: 'Set to true if building an sdist')
12+
option('use_lapack', type: 'boolean',
13+
value: true, description: 'use LAPACK')
14+
option('use_singleprec', type: 'boolean',
15+
value: false, description: 'use single precision floating point')
16+
option('use_long', type: 'boolean',
17+
value: true, description: 'use long over int')
18+
option('use_extraverbose', type: 'boolean',
19+
value: false, description: 'Enable extra verbose SCS (for debugging).')

0 commit comments

Comments
 (0)