| ... | @@ -1735,7 +1735,7 @@ pub const Object = struct { | ... | @@ -1735,7 +1735,7 @@ pub const Object = struct { |
| 1735 | } | 1735 | } |
| 1736 | | 1736 | |
| 1737 | global_index.setUnnamedAddr(.default, &o.builder); | 1737 | global_index.setUnnamedAddr(.default, &o.builder); |
| 1738 | if (comp.config.dll_export_fns) | 1738 | if (comp.config.dll_export_fns and first_export.opts.visibility != .hidden) |
| 1739 | global_index.setDllStorageClass(.dllexport, &o.builder); | 1739 | global_index.setDllStorageClass(.dllexport, &o.builder); |
| 1740 | global_index.setLinkage(switch (first_export.opts.linkage) { | 1740 | global_index.setLinkage(switch (first_export.opts.linkage) { |
| 1741 | .internal => unreachable, | 1741 | .internal => unreachable, |
| ... | @@ -1794,7 +1794,7 @@ pub const Object = struct { | ... | @@ -1794,7 +1794,7 @@ pub const Object = struct { |
| 1794 | | 1794 | |
| 1795 | const alias_global_index = alias_index.ptrConst(&o.builder).global; | 1795 | const alias_global_index = alias_index.ptrConst(&o.builder).global; |
| 1796 | alias_global_index.setUnnamedAddr(.default, &o.builder); | 1796 | alias_global_index.setUnnamedAddr(.default, &o.builder); |
| 1797 | if (comp.config.dll_export_fns) | 1797 | if (comp.config.dll_export_fns and first_export.opts.visibility != .hidden) |
| 1798 | alias_global_index.setDllStorageClass(.dllexport, &o.builder); | 1798 | alias_global_index.setDllStorageClass(.dllexport, &o.builder); |
| 1799 | alias_global_index.setLinkage(switch (first_export.opts.linkage) { | 1799 | alias_global_index.setLinkage(switch (first_export.opts.linkage) { |
| 1800 | .internal => unreachable, | 1800 | .internal => unreachable, |