aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-03-08 11:15:13 +0000
committerGitHub <noreply@github.com>2024-03-08 11:15:13 +0000
commit53ce94503422b904ae52990c7d8bab292413b2bc (patch)
treefcaf082b29dee24e80fe5a758e5a14c50ea3f913 /src/llvm_backend.cpp
parent0e168dd2926dcdb5f1a71001ee0d05e62cbaaca4 (diff)
parent0bb2327d76574c33cfd32f14e11ffd50170b4b9f (diff)
Merge pull request #3230 from avanspector/haiku
Add Haiku OS support
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;