Fixed by #7494 without a test, so here's a test. Extracted from https://github.com/mesonbuild/meson/pull/7539pull/7586/head
parent
847d652c4e
commit
2c3ad37f24
4 changed files with 18 additions and 0 deletions
@ -0,0 +1,5 @@ |
||||
project('a', ['c']) |
||||
|
||||
x = find_program('x.py') |
||||
outs = custom_target('foo', output: ['x.c', 'y'], input: 'a', command: [x]) |
||||
executable('testprog', outs[0]) |
@ -0,0 +1,5 @@ |
||||
#! /usr/bin/env python3 |
||||
with open('x.c', 'w') as f: |
||||
print('int main(void) { return 0; }', file=f) |
||||
with open('y', 'w'): |
||||
pass |
Loading…
Reference in new issue