File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,17 @@ extension Driver {
105
105
106
106
if let importedObjCHeader = importedObjCHeader {
107
107
commandLine. appendFlag ( . importObjcHeader)
108
- if !parsedOptions. contains ( . pchOutputDir) , let pch = bridgingPrecompiledHeader {
109
- commandLine. appendPath ( pch)
108
+ if let pch = bridgingPrecompiledHeader {
109
+ if parsedOptions. contains ( . pchOutputDir) {
110
+ commandLine. appendPath ( importedObjCHeader)
111
+ if compilerMode != . singleCompile {
112
+ commandLine. appendFlag ( . pchDisableValidation)
113
+ }
114
+ } else {
115
+ commandLine. appendPath ( pch)
116
+ }
110
117
} else {
111
118
commandLine. appendPath ( importedObjCHeader)
112
- if compilerMode != . singleCompile {
113
- commandLine. appendFlag ( . pchDisableValidation)
114
- }
115
119
}
116
120
}
117
121
You can’t perform that action at this time.
0 commit comments