aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-03-08 18:06:13 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2024-03-08 18:06:13 +0100
commitfc9d3ec5a7246a57bc2a5fc7ac92b4de729da9b8 (patch)
treeb1e08f3e793402becfd00e87a25b9fbb4bbe791e /src/llvm_backend.cpp
parentdb03c86544ff4a4f5d7f54425d99965fd658208e (diff)
parent51d12acab31c7f260d536366206b7211577f1088 (diff)
Merge branch 'master' of github.com:odin-lang/Odin
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index efba19f23..ca4341525 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -2564,8 +2564,8 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
switch (build_context.reloc_mode) {
case RelocMode_Default:
- if (build_context.metrics.os == TargetOs_openbsd) {
- // Always use PIC for OpenBSD: it defaults to PIE
+ if (build_context.metrics.os == TargetOs_openbsd || build_context.metrics.os == TargetOs_haiku) {
+ // Always use PIC for OpenBSD and Haiku: they default to PIE
reloc_mode = LLVMRelocPIC;
}
break;