allow phony targets in conjunction with a build root

This commit is contained in:
josh committed 2016-01-12 10:14:10 -05:00
1 parent bab4641b6e
commit 0442b876a5
2 files changed
+30 -23

No files matched your search

+5 -1
View File
@@ -509,7 +509,11 @@ module Rscons
#
# @return [String] The expanded path.
def expand_path(path)
path.sub(%r{^\^(?=[\\/])}, @build_root)
if Rscons.phony_target?(path)
path
else
path.sub(%r{^\^(?=[\\/])}, @build_root)
end
end
# Execute a command using the system shell.