mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[XcodeGen] Handle 'rule' declarations and generate command line args
* Rename 'BuildRule to 'BuildEdige' because it is the official term * NinjaParser to handle 'include' and 'rule' directives * NinjaParser to handle parse "rule name" in 'build' correctly * Make variable table a simple `[String: String]` and keep any bindings to make the substitutions possible. * Generate command line argumets using 'command' variable in the 'rule' and use it as the source of truth, istead of using random known bindings like 'FLAGS'.
This commit is contained in:
@@ -52,6 +52,15 @@ extension AnyPath {
|
||||
a
|
||||
}
|
||||
}
|
||||
|
||||
public func absolute(in base: AbsolutePath) -> AbsolutePath {
|
||||
switch self {
|
||||
case .relative(let r):
|
||||
r.absolute(in: base)
|
||||
case .absolute(let a):
|
||||
a
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension AnyPath: Decodable {
|
||||
|
||||
Reference in New Issue
Block a user