zig cc: support more linker args

This commit is contained in:
Andrew Kelley
2020-04-02 17:29:22 -04:00
parent c1778bd41f
commit 5314641e11
4 changed files with 124 additions and 7 deletions

View File

@@ -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);