fix: noconfirm auto-selects first AUR match
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
int func1(void);
|
||||
int func2(void);
|
||||
int func3(void);
|
||||
int func4(void);
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func4(void) {
|
||||
return 4;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
EXPORTS
|
||||
func1
|
||||
func2
|
||||
func3
|
||||
func4
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
project('extract all', 'c', 'cpp')
|
||||
|
||||
if meson.backend() == 'xcode'
|
||||
error('MESON_SKIP_TEST: Xcode backend does not handle libraries with only objects, not sources.')
|
||||
endif
|
||||
|
||||
a = static_library('a', 'one.c', 'two.c')
|
||||
b = static_library('b', 'three.c', 'four.c')
|
||||
# libc.so cannot be used, it already exists as a reserved name
|
||||
c = shared_library('cee',
|
||||
objects : [a.extract_all_objects(), b.extract_all_objects()],
|
||||
vs_module_defs : 'func1234.def')
|
||||
|
||||
e = executable('proggie', 'prog.c', link_with : c)
|
||||
test('extall', e)
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func1(void) {
|
||||
return 1;
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
#include"extractor.h"
|
||||
#include<stdio.h>
|
||||
|
||||
int main(void) {
|
||||
if((1+2+3+4) != (func1() + func2() + func3() + func4())) {
|
||||
printf("Arithmetic is fail.\n");
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func3(void) {
|
||||
return 3;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#include"extractor.h"
|
||||
|
||||
int func2(void) {
|
||||
return 2;
|
||||
}
|
||||
Reference in New Issue
Block a user