Look up compilers based on sources from deps, too. Closes #2768.
parent
36fc655272
commit
cb176e9303
4 changed files with 23 additions and 3 deletions
@ -0,0 +1,5 @@ |
||||
extern "C" int foo(); |
||||
|
||||
int main(int, char**) { |
||||
return foo() != 42; |
||||
} |
@ -0,0 +1,3 @@ |
||||
int foo() { |
||||
return 42; |
||||
} |
@ -0,0 +1,6 @@ |
||||
project('foo', 'c', 'cpp') |
||||
|
||||
dep = declare_dependency(sources : 'foo.c') |
||||
|
||||
executable('bar', 'bar.cpp', |
||||
dependencies : dep) |
Loading…
Reference in new issue