The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
405 B
17 lines
405 B
4 years ago
|
## Multiple append() and prepend() in `environment()` object
|
||
|
|
||
|
`append()` and `prepend()` methods can now be called multiple times
|
||
|
on the same `varname`. Earlier Meson versions would warn and only the last
|
||
|
opperation was taking effect.
|
||
|
|
||
|
```meson
|
||
|
env = environment()
|
||
|
|
||
|
# MY_PATH will be '0:1:2:3'
|
||
|
env.set('MY_PATH', '1')
|
||
|
env.append('MY_PATH', '2')
|
||
|
env.append('MY_PATH', '3')
|
||
|
env.prepend('MY_PATH', '0')
|
||
|
```
|
||
|
|