diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-18 16:47:30 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-18 16:47:30 -0500 |
| commit | 28bf768883d2411d4cd75582d396d465ab6a54b2 (patch) | |
| tree | 542fb1bed1e22462938a62b5caf647c366dfc0c2 /src/analyze.cpp | |
| parent | 74a335c4ccd9eb4cfcc5cc6c01b633584c6bb6ba (diff) | |
| download | zig-28bf768883d2411d4cd75582d396d465ab6a54b2.tar.gz zig-28bf768883d2411d4cd75582d396d465ab6a54b2.zip | |
export _mh_execute_header with weak linkage
* also fix extern variables with initialiaztion values to generate runtime code
* remove the workaround in example/shared_library/mathtest.zig
* introduce the ability for global variables to have Weak and LinkOnce
linkage
* fix `@export` to work for non-functions. this code needs to be
audited though.
* fix comptime ptrcast not keeping bigger alignment
* fix linker warnings when targeting darwin
closes #1903
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 37c0041314..934da61186 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3746,7 +3746,7 @@ static void resolve_decl_var(CodeGen *g, TldVar *tld_var) { VarLinkage linkage; if (is_export) { - linkage = VarLinkageExport; + linkage = VarLinkageExportStrong; } else if (is_extern) { linkage = VarLinkageExternal; } else { |
