aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorvole-dev <dev@vole.dev>2021-10-30 10:30:28 -0500
committerAndrew Kelley <andrew@ziglang.org>2021-12-03 16:53:33 -0700
commitff38f560402aa61ce8e4ae38b4fa0ff2ddbaede6 (patch)
treecc248ce8fc3c3d76d968cb348fc8d130a7e40366 /src/glibc.zig
parent84704ef43e5414860aa9d3dc0f94f9737404f6e5 (diff)
downloadzig-ff38f560402aa61ce8e4ae38b4fa0ff2ddbaede6.tar.gz
zig-ff38f560402aa61ce8e4ae38b4fa0ff2ddbaede6.zip
default mabi based on RISC-V extensions and -mabi build option
The target abi can also be set in build.zig via LibExeObjStep.target_abi The value passed in is checked that it is a valid value in std.Target.TargetAbi The target abi is also validated against the target cpu
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index e67c3360e9..8a49204cd1 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -961,6 +961,7 @@ fn buildSharedLib(
.strip = comp.compilerRtStrip(),
.is_native_os = false,
.is_native_abi = false,
+ .target_abi = comp.bin_file.options.target_abi,
.self_exe_path = comp.self_exe_path,
.verbose_cc = comp.verbose_cc,
.verbose_link = comp.bin_file.options.verbose_link,