diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-02 17:29:22 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-02 17:29:22 -0400 |
| commit | 5314641e117f3b3d9cef2db527af532ddf18ccfc (patch) | |
| tree | 736b147b2016cf79979a5bf21923d3fa8c3ee4ed /src/codegen.cpp | |
| parent | c1778bd41f1fd340662920909fdd9992ac55133e (diff) | |
| download | zig-5314641e117f3b3d9cef2db527af532ddf18ccfc.tar.gz zig-5314641e117f3b3d9cef2db527af532ddf18ccfc.zip | |
zig cc: support more linker args
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index c02b79e97d..c9e67dcac5 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -10558,6 +10558,11 @@ static Error check_cache(CodeGen *g, Buf *manifest_dir, Buf *digest) { } cache_buf_opt(ch, g->version_script_path); cache_buf_opt(ch, g->override_soname); + cache_buf_opt(ch, g->linker_optimization); + cache_int(ch, g->linker_gc_sections); + cache_int(ch, g->linker_allow_shlib_undefined); + cache_bool(ch, g->linker_z_nodelete); + cache_bool(ch, g->linker_z_defs); // gen_c_objects appends objects to g->link_objects which we want to include in the hash gen_c_objects(g); |
