File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
include/swift/ClangImporter Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e2e114f11b837e731ebb79b9278ebfaf5f7c27dd
2
+ refs/heads/master: 58833455ac512c8fd7e128d61d44267477f7e357
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ class ClangImporterOptions {
103
103
using llvm::hash_combine;
104
104
105
105
auto Code = hash_value (ModuleCachePath);
106
- // ExtraArgs ignored - already considered in Clang's module hashing.
106
+ Code = hash_combine (Code, llvm::hash_combine_range (ExtraArgs.begin (),
107
+ ExtraArgs.end ()));
107
108
Code = hash_combine (Code, OverrideResourceDir);
108
109
Code = hash_combine (Code, TargetCPU);
109
110
Code = hash_combine (Code, BridgingHeader);
Original file line number Diff line number Diff line change 46
46
// RUN: not %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/sdk-bridging-header.h -pch-output-dir %t/no-pch -pch-disable-validation 2>&1 | %FileCheck %s -check-prefix=NO-VALIDATION
47
47
// NO-VALIDATION: PCH file {{.*}} not found
48
48
49
+ // Test that -Xcc options are considered in the PCH hash.
50
+ // RUN: %target-swift-frontend -emit-pch -pch-output-dir %t/pch-Xcc %S/Inputs/sdk-bridging-header.h
51
+ // RUN: %target-swift-frontend -emit-pch -pch-output-dir %t/pch-Xcc %S/Inputs/sdk-bridging-header.h -Xcc -Ifoo
52
+ // RUN: %target-swift-frontend -emit-pch -pch-output-dir %t/pch-Xcc %S/Inputs/sdk-bridging-header.h -Xcc -Ibar
53
+ // RUN: ls %t/pch-Xcc/*swift*clang*.pch | count 3
54
+
49
55
import Foundation
50
56
51
57
let not = MyPredicate . not ( )
You can’t perform that action at this time.
0 commit comments