Skip to content

Instantly share code, notes, and snippets.

@leidegre
Last active February 17, 2023 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leidegre/8e464c6fef609b4e2e7612d83e3c332b to your computer and use it in GitHub Desktop.
Save leidegre/8e464c6fef609b4e2e7612d83e3c332b to your computer and use it in GitHub Desktop.
Tundra nil Depends repo
int a()
{
return 3;
}
int b()
{
return 5;
}
#include <stdio.h>
int a();
int b();
int main()
{
printf("%i\n", a(), b());
return 0;
}
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