diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-21 03:01:20 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-21 03:01:20 -0500 |
| commit | 1f7babbc80211e12c9a38ff2196d6ff8c5a19302 (patch) | |
| tree | 1768b836888481ba8f82afa11ec6e1c6262bf429 /src/codegen.cpp | |
| parent | 0abaee79af462f4264717f88af052fb00eefde7c (diff) | |
| download | zig-1f7babbc80211e12c9a38ff2196d6ff8c5a19302.tar.gz zig-1f7babbc80211e12c9a38ff2196d6ff8c5a19302.zip | |
properly forward baseline target cpu features to llvm
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 9cbd5fc6ab..ffdf0e5bb0 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -8802,6 +8802,8 @@ static void init(CodeGen *g) { target_specific_cpu_args = stage2_cpu_features_get_llvm_cpu(g->zig_target->cpu_features); target_specific_features = stage2_cpu_features_get_llvm_features(g->zig_target->cpu_features); } + //fprintf(stderr, "name=%s target_specific_cpu_args=%s\n", buf_ptr(g->root_out_name), target_specific_cpu_args); + //fprintf(stderr, "name=%s target_specific_features=%s\n", buf_ptr(g->root_out_name), target_specific_features); g->target_machine = ZigLLVMCreateTargetMachine(target_ref, buf_ptr(&g->llvm_triple_str), target_specific_cpu_args, target_specific_features, opt_level, reloc_mode, |
