Merge remote-tracking branch 'upstream/master' into fix_odin_test

This commit is contained in:
Jason Kercher
2022-03-09 17:17:40 -05:00
210 changed files with 19327 additions and 3937 deletions

View File

@@ -1295,6 +1295,11 @@ void lb_generate_code(lbGenerator *gen) {
reloc_mode = LLVMRelocPIC;
}
if (build_context.metrics.os == TargetOs_openbsd) {
// Always use PIC for OpenBSD: it defaults to PIE
reloc_mode = LLVMRelocPIC;
}
for_array(i, gen->modules.entries) {
target_machines[i] = LLVMCreateTargetMachine(
target, target_triple, llvm_cpu,