Closed
Description
void CompileFile(string input,string output=input)
{
int x=-1;
$x=gcc $input -o $output //shell command. not C#
if(x==-1)
{
echo "build failed!" //shell command. not C#
}
}
void main()
{
foreach(...)
{
CompileFile(fn,fn);
}
var objs=GetObjects();
var elf = "stm32.elf";
int a=-1;
$a=ld -lc $objs -o $elf //shell command. not C#
......
}