Debian Codegraph @

test cases/common/283 subproj options/subprojects/sub/meson.build

raw
1 project('subproject', 'c')
2 assert(get_option('bar') == true)
3 assert(get_option('werror') == true)
4 assert(get_option('from_toplevel') == true)
5
6 # b_lto is only initialized if used, see test "common/40 options"
7 cc = meson.get_compiler('c')
8 if cc.get_id() in ['gcc', 'clang', 'clang-cl']
9 assert(get_option('b_lto') == true)
10 endif
11
12 subproject('sub2')