Merge pull request #1926 from trhd/libbug
Fix a missing path issue causing Python traceback.pull/1163/head
commit
c3f59d781d
5 changed files with 20 additions and 0 deletions
@ -0,0 +1,6 @@ |
||||
#if defined _WIN32 || defined __CYGWIN__ |
||||
__declspec(dllexport) |
||||
#endif |
||||
int fn(void) { |
||||
return -1; |
||||
} |
@ -0,0 +1,5 @@ |
||||
extern int fn(void); |
||||
|
||||
int main() { |
||||
return 1 + fn(); |
||||
} |
@ -0,0 +1,2 @@ |
||||
exe = executable('main', 'main.c', link_with : lib) |
||||
test('stuff works', exe) |
@ -0,0 +1,3 @@ |
||||
project('lib@root', 'c') |
||||
lib = shared_library('lib', 'lib.c') |
||||
subdir('main') |
Loading…
Reference in new issue