authorgravatar for lgustaf1@binghamton.eduLayne Gustafson <lgustaf1@binghamton.edu> 2019-12-21 21:18:05-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-19 20:53:19-05:00
logb3324f1901ab9eb7321ad65161e6e07047284cab
treef3e6a06b8d86105e8c70fd1c8696c6648c6ab204
parentbd6ef21f8556b3872c5780eee70621e6c66a0aa4
signature Commit is signed but in an unrecognized format.

Add cpu/feature to cache hash


1 files changed, 4 insertions(+), 0 deletions(-)

src/codegen.cpp+4
......@@ -8655,6 +8655,8 @@ static Error define_builtin_compile_vars(CodeGen *g) {
86558655 cache_bool(&cache_hash, g->valgrind_support);
86568656 cache_bool(&cache_hash, g->link_eh_frame_hdr);
86578657 cache_int(&cache_hash, detect_subsystem(g));
8658 if (g->llvm_cpu) cache_str(&cache_hash, g->llvm_cpu);
8659 if (g->llvm_features) cache_str(&cache_hash, g->llvm_features);
86588660
86598661 Buf digest = BUF_INIT;
86608662 buf_resize(&digest, 0);
......@@ -10388,6 +10390,8 @@ static Error check_cache(CodeGen *g, Buf *manifest_dir, Buf *digest) {
1038810390 }
1038910391 cache_buf_opt(ch, g->dynamic_linker_path);
1039010392 cache_buf_opt(ch, g->version_script_path);
10393 if (g->llvm_cpu) cache_str(ch, g->llvm_cpu);
10394 if (g->llvm_features) cache_str(ch, g->llvm_features);
1039110395
1039210396 // gen_c_objects appends objects to g->link_objects which we want to include in the hash
1039310397 gen_c_objects(g);