| ... | @@ -124,6 +124,9 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr | ... | @@ -124,6 +124,9 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr |
| 124 | if (!comp.config.any_non_single_threaded) { | 124 | if (!comp.config.any_non_single_threaded) { |
| 125 | try cflags.append("-D_LIBUNWIND_HAS_NO_THREADS"); | 125 | try cflags.append("-D_LIBUNWIND_HAS_NO_THREADS"); |
| 126 | } | 126 | } |
| | 127 | if (target.os.tag == .haiku) { |
| | 128 | try cflags.append("-D_LIBUNWIND_USE_HAIKU_BSD_LIB"); |
| | 129 | } |
| 127 | if (target.cpu.arch.isArm() and target.abi.float() == .hard) { | 130 | if (target.cpu.arch.isArm() and target.abi.float() == .hard) { |
| 128 | try cflags.append("-DCOMPILER_RT_ARMHF_TARGET"); | 131 | try cflags.append("-DCOMPILER_RT_ARMHF_TARGET"); |
| 129 | } | 132 | } |