@@ -844,6 +844,11 @@ void Serializer::writeBlockInfoBlock() {
844844 BLOCK_RECORD (options_block, MODULE_ABI_NAME);
845845 BLOCK_RECORD (options_block, IS_CONCURRENCY_CHECKED);
846846 BLOCK_RECORD (options_block, MODULE_PACKAGE_NAME);
847+ BLOCK_RECORD (options_block, MODULE_EXPORT_AS_NAME);
848+ BLOCK_RECORD (options_block, PLUGIN_SEARCH_PATH);
849+ BLOCK_RECORD (options_block, EXTERNAL_SEARCH_PLUGIN_PATH);
850+ BLOCK_RECORD (options_block, COMPILER_PLUGIN_LIBRARY_PATH);
851+ BLOCK_RECORD (options_block, COMPILER_PLUGIN_EXECUTABLE_PATH);
847852
848853 BLOCK (INPUT_BLOCK);
849854 BLOCK_RECORD (input_block, IMPORTED_MODULE);
@@ -1124,6 +1129,30 @@ void Serializer::writeHeader(const SerializationOptions &options) {
11241129 }
11251130 XCC.emit (ScratchRecord, arg);
11261131 }
1132+
1133+ // Macro plugins
1134+ options_block::PluginSearchPathLayout PluginSearchPath (Out);
1135+ for (auto Arg : options.PluginSearchPaths ) {
1136+ PluginSearchPath.emit (ScratchRecord, Arg);
1137+ }
1138+
1139+ options_block::ExternalPluginSearchPathLayout
1140+ ExternalPluginSearchPath (Out);
1141+ for (auto Arg : options.ExternalPluginSearchPaths ) {
1142+ ExternalPluginSearchPath.emit (ScratchRecord, Arg);
1143+ }
1144+
1145+ options_block::CompilerPluginLibraryPathLayout
1146+ CompilerPluginLibraryPath (Out);
1147+ for (auto Arg : options.CompilerPluginLibraryPaths ) {
1148+ CompilerPluginLibraryPath.emit (ScratchRecord, Arg);
1149+ }
1150+
1151+ options_block::CompilerPluginExecutablePathLayout
1152+ CompilerPluginExecutablePath (Out);
1153+ for (auto Arg : options.CompilerPluginLibraryPaths ) {
1154+ CompilerPluginExecutablePath.emit (ScratchRecord, Arg);
1155+ }
11271156 }
11281157 }
11291158 }
0 commit comments