aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/customtarget_env.md
blob: 69bfc0d8d7ff91f401ff7daf097255ed76934c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
## `custom_target()` now accepts an `env` keyword argument

Environment variables can now be passed to the `custom_target()` command.

```meson
env = environment()
env.append('PATH', '/foo')
custom_target(..., env: env)
custom_target(..., env: {'MY_ENV': 'value'})
custom_target(..., env: ['MY_ENV=value'])
```