 class Builder {
 
   var package: Package
+  var rootDirectory: String
   var buildDirectory: String
   var binDirectory: String
 

          NSFileHandle.fileHandleWithStandardError().writeData(error)
        }
      }
    }
  }


      return (options as NSString)
        .componentsSeparatedByCharactersInSet(WhitespaceCharacterSet)
        .map { $0 as! String }
        .map { self.formatCompilerOption($0) }
    } else {
      return [String]()
    }
  }

  private func formatCompilerOption(option: String) -> String {
    return option
      .stringByReplacingOccurrencesOfString("{root}", withString: rootDirectory)
  }

}
