fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
project('promotion test', 'c')
|
||||
|
||||
subproject('s1')
|
||||
subproject('s2')
|
||||
@@ -0,0 +1,7 @@
|
||||
project('s1', 'c')
|
||||
|
||||
sc = subproject('scommon')
|
||||
s3 = subproject('s3')
|
||||
|
||||
executable('s1', 's1.c',
|
||||
link_with : [sc.get_variable('clib'), s3.get_variable('l')])
|
||||
@@ -0,0 +1,6 @@
|
||||
int func();
|
||||
int func2();
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
return func() + func2();
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
project('s3', 'c')
|
||||
|
||||
l = static_library('s3', 's3.c')
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
int func2() {
|
||||
return -42;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
project('scommon', 'c')
|
||||
|
||||
clib = static_library('scommon', 'scommon_broken.c')
|
||||
+1
@@ -0,0 +1 @@
|
||||
#error This file must not be used. The other scommon one should be instead.
|
||||
@@ -0,0 +1,5 @@
|
||||
project('s2', 'c')
|
||||
|
||||
sc = subproject('scommon')
|
||||
|
||||
executable('s2', 's2.c', link_with : sc.get_variable('clib'))
|
||||
@@ -0,0 +1,6 @@
|
||||
int func();
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
return func() != 42;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
[wrap-file]
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
project('scommon', 'c')
|
||||
|
||||
clib = static_library('scommon', 'scommon_ok.c')
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
int func() {
|
||||
return 42;
|
||||
}
|
||||
Reference in New Issue
Block a user