aboutsummaryrefslogtreecommitdiff
path: root/src/libcxx.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/libcxx.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/libcxx.zig')
-rw-r--r--src/libcxx.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcxx.zig b/src/libcxx.zig
index fe96207c48..312de1b554 100644
--- a/src/libcxx.zig
+++ b/src/libcxx.zig
@@ -200,6 +200,7 @@ pub fn buildLibCXX(comp: *Compilation) !void {
.strip = comp.compilerRtStrip(),
.is_native_os = comp.bin_file.options.is_native_os,
.is_native_abi = comp.bin_file.options.is_native_abi,
+ .target_abi = comp.bin_file.options.target_abi,
.self_exe_path = comp.self_exe_path,
.c_source_files = c_source_files.items,
.verbose_cc = comp.verbose_cc,
@@ -332,6 +333,7 @@ pub fn buildLibCXXABI(comp: *Compilation) !void {
.strip = comp.compilerRtStrip(),
.is_native_os = comp.bin_file.options.is_native_os,
.is_native_abi = comp.bin_file.options.is_native_abi,
+ .target_abi = comp.bin_file.options.target_abi,
.self_exe_path = comp.self_exe_path,
.c_source_files = c_source_files.items,
.verbose_cc = comp.verbose_cc,