mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
Add optimization option
This commit is contained in:
parent
43cd572a3f
commit
017b1e9b7f
@ -271,10 +271,17 @@ http_parser_dep = dependency('http-parser', version: '0.1.0', fallback: ['http-p
|
||||
softfloat3_dep = dependency('softfloat3', fallback: ['softfloat3', 'softfloat3_dep'])
|
||||
|
||||
|
||||
opt_flags = []
|
||||
if get_option('debug')
|
||||
opt_flags = ['-g']
|
||||
else
|
||||
opt_flags = ['-O3']
|
||||
endif
|
||||
|
||||
executable('urbit',
|
||||
sources : sources,
|
||||
include_directories : incdir,
|
||||
c_flags : ['-O3'] + os_c_flags,
|
||||
c_flags : opt_flags + os_c_flags,
|
||||
link_args: os_link_flags,
|
||||
dependencies: [openssl_dep,
|
||||
curl_dep,
|
||||
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@ -0,0 +1 @@
|
||||
option('debug', type:'boolean', value: false)
|
Loading…
Reference in New Issue
Block a user