fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
int retval (void);
|
||||
|
||||
int test (void) {
|
||||
return retval ();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
writec = find_program('writec.py')
|
||||
|
||||
retval = custom_target('writec',
|
||||
output : 'retval.c',
|
||||
command : [writec, '@OUTPUT@'])
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
c = '''int
|
||||
retval(void) {
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
||||
with open(sys.argv[1], 'w') as f:
|
||||
f.write(c)
|
||||
@@ -0,0 +1,7 @@
|
||||
project('foo', 'c', 'vala')
|
||||
|
||||
glib = dependency('glib-2.0')
|
||||
|
||||
subdir('c')
|
||||
e = executable('foo', 'c/foo.c', retval, 'vala/bar.vala', dependencies: [glib])
|
||||
test('test foo', e)
|
||||
@@ -0,0 +1,5 @@
|
||||
extern int test ();
|
||||
|
||||
public int main (string[] args) {
|
||||
return test ();
|
||||
}
|
||||
Reference in New Issue
Block a user