Support environment variable to set rscons build directory - close #145

This commit is contained in:
josh committed 2022-01-17 18:02:58 -05:00
1 parent c1dcfa297f
commit b0f2bbb7d5
2 files changed
+23 -3

No files matched your search

+2 -1
View File
@@ -27,7 +27,8 @@ module Rscons
# Create Application instance.
def initialize
@build_dir = "build"
@build_dir = ENV["RSCONS_BUILD_DIR"] || "build"
ENV.delete("RSCONS_BUILD_DIR")
@n_threads = Util.determine_n_threads
@vars = VarSet.new
@operations = Set.new