fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
cc = meson.get_compiler('c')
|
||||
cc_id = cc.get_id()
|
||||
|
||||
if cc_id == 'lcc'
|
||||
error('MESON_SKIP_TEST: Elbrus compiler does not support PCH.')
|
||||
endif
|
||||
|
||||
# PGI compiler only supports PCH for C++
|
||||
if cc_id == 'pgi'
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
exe = executable('prog', 'prog.c',
|
||||
c_pch : 'pch/prog.h')
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef PROG_H
|
||||
// Header guards for PCH confuse msvc in some situations.
|
||||
// Using them here makes sure we handle this correctly.
|
||||
#define PROG_H
|
||||
#include<stdio.h>
|
||||
#endif
|
||||
@@ -0,0 +1,9 @@
|
||||
// No includes here, they need to come from the PCH
|
||||
|
||||
void func(void) {
|
||||
fprintf(stdout, "This is a function that fails if stdio is not #included.\n");
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user