Skip to content

Commit 3dd13e7

Browse files
authored
Merge pull request #66309 from xymus/fix-serial-macros
[Serialization] Fix serializing CompilerPluginExecutablePaths values
2 parents 7193b70 + 7abb4c3 commit 3dd13e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Frontend/Frontend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ SerializationOptions CompilerInvocation::computeSerializationOptions(
232232
llvm::interleave(
233233
pair.ModuleNames, [&](auto &name) { optStr += name; },
234234
[&]() { optStr += ","; });
235-
serializationOpts.CompilerPluginLibraryPaths.push_back(optStr);
235+
serializationOpts.CompilerPluginExecutablePaths.push_back(optStr);
236236
}
237237

238238
serializationOpts.DisableCrossModuleIncrementalInfo =

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ void Serializer::writeHeader(const SerializationOptions &options) {
11501150

11511151
options_block::CompilerPluginExecutablePathLayout
11521152
CompilerPluginExecutablePath(Out);
1153-
for (auto Arg : options.CompilerPluginLibraryPaths) {
1153+
for (auto Arg : options.CompilerPluginExecutablePaths) {
11541154
CompilerPluginExecutablePath.emit(ScratchRecord, Arg);
11551155
}
11561156
}

test/Macros/serialize_plugin_search_paths.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// CHECK: -plugin-path: {{.*}}plugins
1616
// CHECK: -plugin-path: {{.*}}plugins
1717
// CHECK: -plugin-path: {{.*}}plugins
18+
// CHECK: -plugin-path: {{.*}}plugins
1819
// CHECK: -external-plugin-path: {{.*}}plugins#{{.*}}swift-plugin-server
1920
// CHECK: -load-plugin-library: {{.*}}MacroDefinition.{{dylib|so|dll}}
20-
// CHECK: -load-plugin-executable: {{.*}}MacroDefinition.{{dylib|so|dll}}
2121
// CHECK: -load-plugin-executable: {{.*}}mock-plugin#TestPlugin

0 commit comments

Comments
 (0)