mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ParseableInterface] Distinguish SDK and non-SDK dependencies
This allows the SDK to be relocated without automatically resulting in a rebuild. Based on an old patch from Jordan Rose.
This commit is contained in:
@@ -253,14 +253,16 @@ static bool validateInputBlock(
|
||||
switch (kind) {
|
||||
case input_block::FILE_DEPENDENCY: {
|
||||
bool isHashBased = scratch[2] != 0;
|
||||
bool isSDKRelative = scratch[3] != 0;
|
||||
|
||||
if (isHashBased) {
|
||||
dependencies.push_back(
|
||||
SerializationOptions::FileDependency::hashBased(
|
||||
blobData, scratch[0], scratch[1]));
|
||||
blobData, isSDKRelative, scratch[0], scratch[1]));
|
||||
} else {
|
||||
dependencies.push_back(
|
||||
SerializationOptions::FileDependency::modTimeBased(
|
||||
blobData, scratch[0], scratch[1]));
|
||||
blobData, isSDKRelative, scratch[0], scratch[1]));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user