fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
void tmp_func(void) {
|
||||
fprintf(stdout, "This is a function that fails if stdio is not #included.\n");
|
||||
}
|
||||
|
||||
int cfunc(void) {
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
extern "C" int cfunc();
|
||||
|
||||
void func(void) {
|
||||
std::cout << "This is a function that fails to compile if iostream is not included."
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
return cfunc();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
cc = meson.get_compiler('c')
|
||||
cc_id = cc.get_id()
|
||||
|
||||
# PGI compiler only supports PCH for C++
|
||||
if cc_id == 'pgi'
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
exe = executable(
|
||||
'prog',
|
||||
files('main.cc', 'func.c'),
|
||||
c_pch : ['pch/func.h'],
|
||||
cpp_pch : ['pch/main.h'],
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
#include<stdio.h>
|
||||
@@ -0,0 +1 @@
|
||||
#include<iostream>
|
||||
Reference in New Issue
Block a user