You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,10 @@ Similarly, one can use the new Swift driver within Xcode by adding a custom buil
36
36
37
37
The new Swift driver is a work in progress, and there are numerous places for anyone with an interest to contribute! This section covers testing, miscellaneous development tips and tricks, and a rough development plan showing what work still needs to be done.
38
38
39
+
### Driver Documentation
40
+
41
+
For a conceptual overview of the driver, see [The Swift Driver, Compilation Model, and Command-Line Experience](https://github.com/apple/swift/blob/master/docs/Driver.md). To learn more about the internals, see [Driver Design & Internals](https://github.com/apple/swift/blob/master/docs/DriverInternals.rst) and [Parseable Driver Output](https://github.com/apple/swift/blob/master/docs/DriverParseableOutput.rst).
- You can now go to `/home/swift-driver` and run `swift test --parallel` to run your tests.
91
+
92
+
67
93
### Rebuilding `Options.swift`
68
94
69
95
`Options.swift`, which contains the complete set of options that can be parsed by the driver, is automatically generated from the [option tables in the Swift compiler](https://github.com/apple/swift/tree/master/include/swift/Option). If you need to regenerate `Options.swift`, you will need to [build the Swift compiler](https://github.com/apple/swift#building-swift) and then build `makeOptions` program with a `-I` that allows the generated `Options.inc` to
@@ -100,7 +126,7 @@ The goal of the new Swift driver is to provide a drop-in replacement for the exi
100
126
*[x] Implement proper tokenization for response files
101
127
* Compilation modes
102
128
*[x] Batch mode
103
-
*[] Whole-module-optimization mode
129
+
*[x] Whole-module-optimization mode
104
130
*[ ] REPL mode
105
131
*[ ] Immediate mode
106
132
* Features
@@ -110,6 +136,7 @@ The goal of the new Swift driver is to provide a drop-in replacement for the exi
110
136
*[x] Parseable output, as used by SwiftPM
111
137
*[x] Response files
112
138
*[ ] Input and primary input file lists
139
+
*[ ] Complete `OutputFileMap` implementation to handle all file types uniformly
113
140
* Testing
114
141
*[ ] Build stuff with SwiftPM or Xcode or your favorite build system, using `swift-driver`. Were the results identical? What changed?
115
142
*[x] Shim in `swift-driver` so it can run the Swift repository's [driver test suite](https://github.com/apple/swift/tree/master/test/Driver).
0 commit comments