def expand_path(path)
      if Rscons.phony_target?(path)
        path
      elsif path.is_a?(Array)
        path.map do |path|
          expand_path(path)
        end
      else
        path.sub(%r{^\^(?=[\\/])}, @build_root).gsub("\\", "/")
      end
    end
def expand_path(path)
      if Rscons.phony_target?(path)
        path
      elsif path.is_a?(Array)
        path.map do |path|
          expand_path(path)
        end
      else
        path.sub(%r{^\^(?=[\\/])}, @build_root).gsub("\\", "/")
      end
    end
Expand a path to be relative to the Environment's build root.

 Paths beginning with "^/" are expanded by replacing "^" with the
 Environment's build root.

 @param path [String, Array<String>]
   The path(s) to expand.

 @return [String, Array<String>]
   The expanded path(s).