allow nil to be passed in to Environment#build_root=

This commit is contained in:
josh committed 2014-02-19 15:02:18 -05:00
1 parent 2dde39a0ec
commit e5ca8776a9
1 file changed
+2 -1
+2 -1
View File
@@ -15,7 +15,8 @@ module Rscons
# String or +nil+
attr_reader :build_root
def build_root=(build_root)
@build_root = build_root.gsub('\\', '/')
@build_root = build_root
@build_root.gsub!('\\', '/') if @build_root
end
# Create an Environment object.