Add shortcut method for creating environments - close #149

Add env() method to create environments.
Process all environments created at build script top level before
executing any autoconf-enabled tasks, or if no tasks are specified by
the user.
This commit is contained in:
josh committed 2022-02-12 21:59:52 -05:00
1 parent 6d5f44d4e5
commit ef7e9259cb
129 files changed
+742 -901

No files matched your search

+2 -4
View File
@@ -2,8 +2,6 @@ configure do
check_d_compiler "gdc"
end
default do
Environment.new(echo: :command) do |env|
env.Program("hello-d.exe", glob("*.d"))
end
env(echo: :command) do |env|
env.Program("hello-d.exe", glob("*.d"))
end