test cases/rust/10 language stds/meson.build
raw| 1 | project('rust std options', 'rust') |
| 2 | |
| 3 | # this only works in 2018 |
| 4 | new = executable( |
| 5 | 'new', |
| 6 | '2018.rs', |
| 7 | override_options : ['rust_std=2018'], |
| 8 | ) |
| 9 | |
| 10 | # this only works in 2015 |
| 11 | old = static_library( |
| 12 | 'old', |
| 13 | '2015.rs', |
| 14 | override_options : ['rust_std=2015'], |
| 15 | ) |
| 16 | |
| 17 | |
| 18 | test('2018 std', new) |