File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1583,8 +1583,13 @@ extension Driver {
1583
1583
Triple ( $0, normalizing: true )
1584
1584
}
1585
1585
1586
- // FIXME: Compute these.
1587
- let resourceDirPath : VirtualPath ? = nil
1586
+ // Determine the resource directory.
1587
+ let resourceDirPath : VirtualPath ?
1588
+ if let resourceDirArg = parsedOptions. getLastArgument ( . resourceDir) {
1589
+ resourceDirPath = try VirtualPath ( path: resourceDirArg. asSingle)
1590
+ } else {
1591
+ resourceDirPath = nil
1592
+ }
1588
1593
1589
1594
let toolchainType = try explicitTarget? . toolchainType ( diagnosticsEngine) ??
1590
1595
defaultToolchainType
Original file line number Diff line number Diff line change @@ -178,6 +178,11 @@ extension Driver {
178
178
commandLine. appendPath ( . absolute( workingDirectory) )
179
179
}
180
180
181
+ // Resource directory.
182
+ commandLine. appendFlag ( . resourceDir)
183
+ commandLine. appendPath (
184
+ try AbsolutePath ( validating: frontendTargetInfo. paths. runtimeResourcePath) )
185
+
181
186
// -g implies -enable-anonymous-context-mangled-names, because the extra
182
187
// metadata aids debugging.
183
188
if parsedOptions. getLast ( in: . g) != nil {
You can’t perform that action at this time.
0 commit comments