-
-
Save leidegre/8e464c6fef609b4e2e7612d83e3c332b to your computer and use it in GitHub Desktop.
Tundra nil Depends repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a() | |
{ | |
return 3; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int b() | |
{ | |
return 5; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int a(); | |
int b(); | |
int main() | |
{ | |
printf("%i\n", a(), b()); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build { | |
Configs = { | |
{ | |
Name = "win64-msvc", | |
DefaultOnHost = "windows", | |
Tools = { | |
{ | |
"msvc-vs2019", | |
TargetArch = "x64" | |
} | |
} | |
} | |
}, | |
Units = { | |
function() | |
StaticLibrary { | |
Name = "a", | |
Sources = { | |
"a.c" | |
} | |
} | |
StaticLibrary { | |
Name = "b", | |
Sources = { | |
"b.c" | |
} | |
} | |
Program { | |
Name = "c", | |
Depends = { | |
nil, -- remove this to successfully compile | |
"a", | |
"b" | |
}, | |
Sources = { | |
"c.c" | |
} | |
} | |
Default "c" | |
end | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment