fix: noconfirm auto-selects first AUR match
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
#if defined _WIN32
|
||||
#define DLL_PUBLIC __declspec(dllexport)
|
||||
#else
|
||||
#if defined __GNUC__
|
||||
#define DLL_PUBLIC __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#pragma message ("Compiler does not support symbol visibility.")
|
||||
#define DLL_PUBLIC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void DLL_PUBLIC liba_func() {
|
||||
}
|
||||
|
||||
#ifdef MORE_EXPORTS
|
||||
|
||||
void DLL_PUBLIC libb_func() {
|
||||
}
|
||||
|
||||
#endif
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
project('lib1', ['c'])
|
||||
|
||||
c_args = []
|
||||
|
||||
# Microsoft's compiler is quite smart about touching import libs on changes,
|
||||
# so ensure that there is actually a change in symbols.
|
||||
if get_option('more_exports')
|
||||
c_args += '-DMORE_EXPORTS'
|
||||
endif
|
||||
|
||||
a = library('test-lib', 'lib.c', c_args: c_args, install: true)
|
||||
+1
@@ -0,0 +1 @@
|
||||
option('more_exports', type : 'boolean', value : false)
|
||||
Reference in New Issue
Block a user