Place object files next to source files for source files in build directory - close #171

This commit is contained in:
josh committed 2023-09-10 10:00:41 -04:00
1 parent 3867133e89
commit 6a8647a933
3 files changed
+30 -1

No files matched your search

@@ -0,0 +1,13 @@
env("e", echo: :command) do |env|
source_file = "#{env.build_root}/src/foo.c"
FileUtils.mkdir_p(File.dirname(source_file))
File.open(source_file, "w") do |fh|
fh.puts(<<-EOF)
int main()
{
return 29;
}
EOF
end
env.Program("foo.exe", source_file)
end