set Environment build root automatically - close #64
This commit is contained in:
1 parent
49116e6b59
commit
7a90325b67
8 files changed
+78
-130
No files matched your search
@@ -1,5 +1,4 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env.build_root = "build"
|
||||
tempdir = ENV["TEMP"] || ENV["TMP"] || "/tmp"
|
||||
source_file = File.join(tempdir, "abs.c")
|
||||
File.open(source_file, "w") do |fh|
|
||||
|
||||
-1
@@ -4,7 +4,6 @@ class TestBuilder < Rscons::Builder
|
||||
end
|
||||
end
|
||||
Rscons::Environment.new do |env|
|
||||
env.build_root = "build"
|
||||
env.add_builder(TestBuilder.new)
|
||||
env.TestBuilder("file")
|
||||
end
|
||||
Reference in new issue
Block a user