     fatalError("No arguments given")
 }
 
-let dict = NSProcessInfo.processInfo().environment
+let dict = ProcessInfo.processInfo.environment
 let srcRoot = Process.arguments[1]
 let builtProductsDir = Process.arguments[2]
 

let files = moduleFiles.map { "swift/macosx/x86_64/" + $0 }

func copy(from: String, to: String) {
    let task = NSTask()
    task.launchPath = "/bin/cp"
    task.arguments = ["-r", from, to]
    task.launch()

    }
}

func mkdir(_ path: String) {
    let task = Task()
    task.launchPath = "/bin/mkdir"
    task.arguments = ["-p", path]
    task.launch()
