aboutsummaryrefslogtreecommitdiff
path: root/src/libunwind.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-12-24 13:31:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-12-24 13:31:41 -0700
commit894434988d96f3246e0525000f281563c1febb73 (patch)
tree9d8a872b308efc1c76f0a7adcf026b041083cb6d /src/libunwind.zig
parented26b3204a3028fbc7d05a03b7e995d2f0de7a75 (diff)
downloadzig-894434988d96f3246e0525000f281563c1febb73.tar.gz
zig-894434988d96f3246e0525000f281563c1febb73.zip
libunwind: fix compile errors and warnings for 32-bit arm
Diffstat (limited to 'src/libunwind.zig')
-rw-r--r--src/libunwind.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libunwind.zig b/src/libunwind.zig
index b5b11f59dc..057663a44b 100644
--- a/src/libunwind.zig
+++ b/src/libunwind.zig
@@ -81,7 +81,12 @@ pub fn buildStaticLib(comp: *Compilation) !void {
if (comp.bin_file.options.single_threaded) {
try cflags.append("-D_LIBUNWIND_HAS_NO_THREADS");
}
+ if (target.cpu.arch.isARM() and target.abi.floatAbi() == .hard) {
+ try cflags.append("-DCOMPILER_RT_ARMHF_TARGET");
+ }
try cflags.append("-Wno-bitwise-conditional-parentheses");
+ try cflags.append("-Wno-visibility");
+ try cflags.append("-Wno-incompatible-pointer-types");
c_source_files[i] = .{
.src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{unwind_src}),