fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#ifndef CTHING
|
||||
#error "Local argument not set"
|
||||
#endif
|
||||
|
||||
#ifdef CPPTHING
|
||||
#error "Wrong local argument set"
|
||||
#endif
|
||||
|
||||
int func(void) { return 0; }
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifdef CTHING
|
||||
#error "Local C argument set in wrong target"
|
||||
#endif
|
||||
|
||||
#ifdef CPPTHING
|
||||
#error "Local CPP argument set in wrong target"
|
||||
#endif
|
||||
|
||||
int func(void) { return 0; }
|
||||
@@ -0,0 +1,9 @@
|
||||
project('local arg test', 'cpp', 'c')
|
||||
|
||||
exe1 = executable('prog', 'prog.cc', 'func.c', \
|
||||
c_args : '-DCTHING', \
|
||||
cpp_args : '-DCPPTHING')
|
||||
exe2 = executable('prog2', 'prog2.cc', 'func2.c')
|
||||
|
||||
test('prog1', exe1)
|
||||
test('prog2', exe2)
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifdef CTHING
|
||||
#error "Wrong local argument set"
|
||||
#endif
|
||||
|
||||
#ifndef CPPTHING
|
||||
#error "Local argument not set"
|
||||
#endif
|
||||
|
||||
extern "C" int func();
|
||||
|
||||
int main(void) {
|
||||
return func();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifdef CTHING
|
||||
#error "Local C argument set in wrong target"
|
||||
#endif
|
||||
|
||||
#ifdef CPPTHING
|
||||
#error "Local CPP argument set in wrong target"
|
||||
#endif
|
||||
|
||||
extern "C" int func();
|
||||
|
||||
int main(void) {
|
||||
return func();
|
||||
}
|
||||
Reference in New Issue
Block a user