Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2022-05-16 14:13:30 -07:00
14 changed files with 255 additions and 37 deletions

View File

@@ -1088,8 +1088,11 @@ void Serializer::writeHeader(const SerializationOptions &options) {
++Arg;
continue;
}
} else if (arg.startswith("-fdebug-prefix-map=")) {
// We don't serialize the debug prefix map flags as these
} else if (arg.startswith("-fdebug-prefix-map=") ||
arg.startswith("-ffile-prefix-map=") ||
arg.startswith("-fcoverage-prefix-map=") ||
arg.startswith("-fmacro-prefix-map=")) {
// We don't serialize any of the prefix map flags as these flags
// contain absolute paths that are not usable on different
// machines. These flags are not necessary to compile the
// clang modules again so are safe to remove.