test cases/unit/122 persp options/subprojects/sub2/meson.build
raw| 1 | project('sub2', 'c') |
| 2 | |
| 3 | round = get_option('round') |
| 4 | opt = get_option('optimization') |
| 5 | if round == 1 |
| 6 | assert(opt == '1') |
| 7 | elif round == 2 |
| 8 | assert(opt == '3') |
| 9 | elif round == 3 |
| 10 | assert(opt == '2') |
| 11 | elif round == 4 |
| 12 | assert(opt == '2') |
| 13 | elif round == 5 |
| 14 | assert(opt == '1') |
| 15 | elif round == 6 |
| 16 | assert(opt == '2') |
| 17 | else |
| 18 | assert(false, 'Invalid round number') |
| 19 | endif |
| 20 | |
| 21 | executable('sub2', 'sub2.c') |