mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Build] Use built-in lto option.
This commit is contained in:
parent
c82754307c
commit
c9faa69a1b
2 changed files with 1 additions and 3 deletions
|
@ -30,8 +30,7 @@ foreach f : flags
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
if get_option('lto')
|
if get_option('b_lto')
|
||||||
add_project_arguments('-flto', language: 'c')
|
|
||||||
add_project_arguments('-Werror=odr', language: 'c')
|
add_project_arguments('-Werror=odr', language: 'c')
|
||||||
add_project_arguments('-Werror=lto-type-mismatch', language: 'c')
|
add_project_arguments('-Werror=lto-type-mismatch', language: 'c')
|
||||||
add_project_arguments('-Werror=strict-aliasing', language: 'c')
|
add_project_arguments('-Werror=strict-aliasing', language: 'c')
|
||||||
|
|
|
@ -2,4 +2,3 @@ option('drun', type: 'boolean', value: true, description: 'Desktop file mode')
|
||||||
option('window', type: 'boolean', value: true, description: 'Window switcher mode')
|
option('window', type: 'boolean', value: true, description: 'Window switcher mode')
|
||||||
option('check', type: 'feature', description: 'Build and run libcheck-based tests')
|
option('check', type: 'feature', description: 'Build and run libcheck-based tests')
|
||||||
option('imdkit', type: 'boolean', value: true, description: 'IMDKit support')
|
option('imdkit', type: 'boolean', value: true, description: 'IMDKit support')
|
||||||
option('lto', type: 'boolean', value: false, description: 'Compile with lto')
|
|
||||||
|
|
Loading…
Reference in a new issue