mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
fix(codegen/llvm): teach llvm to not dllexport hidden exports
This commit is contained in:
parent
96bd268c8c
commit
87fa61bdd1
1 changed files with 2 additions and 2 deletions
|
|
@ -1735,7 +1735,7 @@ pub const Object = struct {
|
|||
}
|
||||
|
||||
global_index.setUnnamedAddr(.default, &o.builder);
|
||||
if (comp.config.dll_export_fns)
|
||||
if (comp.config.dll_export_fns and first_export.opts.visibility != .hidden)
|
||||
global_index.setDllStorageClass(.dllexport, &o.builder);
|
||||
global_index.setLinkage(switch (first_export.opts.linkage) {
|
||||
.internal => unreachable,
|
||||
|
|
@ -1794,7 +1794,7 @@ pub const Object = struct {
|
|||
|
||||
const alias_global_index = alias_index.ptrConst(&o.builder).global;
|
||||
alias_global_index.setUnnamedAddr(.default, &o.builder);
|
||||
if (comp.config.dll_export_fns)
|
||||
if (comp.config.dll_export_fns and first_export.opts.visibility != .hidden)
|
||||
alias_global_index.setDllStorageClass(.dllexport, &o.builder);
|
||||
alias_global_index.setLinkage(switch (first_export.opts.linkage) {
|
||||
.internal => unreachable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue