File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ benefit of all Swift developers.
36
36
- [ Bisecting on SIL optimizer pass counts to identify optimizer bugs] ( #bisecting-on-sil-optimizer-pass-counts-to-identify-optimizer-bugs )
37
37
- [ Using git-bisect in the presence of branch forwarding/feature branches] ( #using-git-bisect-in-the-presence-of-branch-forwardingfeature-branches )
38
38
- [ Reducing SIL test cases using bug_reducer] ( #reducing-sil-test-cases-using-bug_reducer )
39
+ - [ Disabling PCH Verification] ( #disabling-pch-verification )
39
40
- [ Debugging the Compiler Build] ( #debugging-the-compiler-build )
40
41
- [ Build Dry Run] ( #build-dry-run )
41
42
- [ Debugging the Compiler Driver] ( #debugging-the-compiler-driver-build )
@@ -832,6 +833,19 @@ each time you change shas. To do this you can pass `--match-timestamp`
832
833
to automatically checkout match the timestamp of the ` apple/swift ` repo
833
834
across the other repos.
834
835
836
+ ## Disabling PCH Verification
837
+
838
+ Sometimes one needs to try to compile against PCH modules where the PCH version
839
+ verification checking is too strict. To work around this, one can disable the
840
+ checking by passing in to swift:
841
+
842
+ ``` sh
843
+ -Xcc -Xclang -Xcc -fno-validate-pch
844
+ ```
845
+
846
+ NOTE: If there are actual differences in between the on disk PCH format and the
847
+ format expected by the compiler crashes and undefined behavior may result.
848
+
835
849
# Debugging the Compiler Build
836
850
837
851
## Build Dry Run
You can’t perform that action at this time.
0 commit comments