We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620784a commit 400fc86Copy full SHA for 400fc86
include/swift/IRGen/Linking.h
@@ -1147,6 +1147,11 @@ class ApplyIRLinkage {
1147
// TODO: BFD and gold do not handle COMDATs properly
1148
if (Triple.isOSBinFormatELF())
1149
return;
1150
+ // WebAssembly: hack: comdat + custom section = explosion
1151
+ // the comdat code assumes section name would be unique for each comdat
1152
+ // this doesn't happen for metadata.
1153
+ if (Triple.isOSBinFormatWasm())
1154
+ return;
1155
1156
if (IRL.Linkage == llvm::GlobalValue::LinkOnceODRLinkage ||
1157
IRL.Linkage == llvm::GlobalValue::WeakODRLinkage)
0 commit comments