fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
int entity_func1(void);
|
||||
int entity_func2(void);
|
||||
@@ -0,0 +1,9 @@
|
||||
#include"entity.h"
|
||||
|
||||
#ifdef USING_ENT
|
||||
#error "Entity use flag leaked into entity compilation."
|
||||
#endif
|
||||
|
||||
int entity_func1(void) {
|
||||
return 5;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#include<entity.h>
|
||||
|
||||
int entity_func2(void) {
|
||||
return 9;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
entity_lib = static_library('entity', 'entity1.c')
|
||||
|
||||
entity_dep = declare_dependency(link_with : [[entity_lib]],
|
||||
include_directories : [['.']],
|
||||
sources : 'entity2.c',
|
||||
compile_args : ['-DUSING_ENT=1'],
|
||||
version : '1.2.3',
|
||||
link_args : []) # No simple way of testing linker flags :(.
|
||||
|
||||
assert(entity_dep.version().version_compare('==1.2.3'), 'Declare_dep has incorrect version string.')
|
||||
Reference in New Issue
Block a user