@@ -843,6 +843,11 @@ void Serializer::writeBlockInfoBlock() {
843843 BLOCK_RECORD (options_block, MODULE_ABI_NAME);
844844 BLOCK_RECORD (options_block, IS_CONCURRENCY_CHECKED);
845845 BLOCK_RECORD (options_block, MODULE_PACKAGE_NAME);
846+ BLOCK_RECORD (options_block, MODULE_EXPORT_AS_NAME);
847+ BLOCK_RECORD (options_block, PLUGIN_SEARCH_PATH);
848+ BLOCK_RECORD (options_block, EXTERNAL_SEARCH_PLUGIN_PATH);
849+ BLOCK_RECORD (options_block, COMPILER_PLUGIN_LIBRARY_PATH);
850+ BLOCK_RECORD (options_block, COMPILER_PLUGIN_EXECUTABLE_PATH);
846851
847852 BLOCK (INPUT_BLOCK);
848853 BLOCK_RECORD (input_block, IMPORTED_MODULE);
@@ -1119,6 +1124,30 @@ void Serializer::writeHeader(const SerializationOptions &options) {
11191124 }
11201125 XCC.emit (ScratchRecord, arg);
11211126 }
1127+
1128+ // Macro plugins
1129+ options_block::PluginSearchPathLayout PluginSearchPath (Out);
1130+ for (auto Arg : options.PluginSearchPaths ) {
1131+ PluginSearchPath.emit (ScratchRecord, Arg);
1132+ }
1133+
1134+ options_block::ExternalPluginSearchPathLayout
1135+ ExternalPluginSearchPath (Out);
1136+ for (auto Arg : options.ExternalPluginSearchPaths ) {
1137+ ExternalPluginSearchPath.emit (ScratchRecord, Arg);
1138+ }
1139+
1140+ options_block::CompilerPluginLibraryPathLayout
1141+ CompilerPluginLibraryPath (Out);
1142+ for (auto Arg : options.CompilerPluginLibraryPaths ) {
1143+ CompilerPluginLibraryPath.emit (ScratchRecord, Arg);
1144+ }
1145+
1146+ options_block::CompilerPluginExecutablePathLayout
1147+ CompilerPluginExecutablePath (Out);
1148+ for (auto Arg : options.CompilerPluginLibraryPaths ) {
1149+ CompilerPluginExecutablePath.emit (ScratchRecord, Arg);
1150+ }
11221151 }
11231152 }
11241153 }
0 commit comments