authorgravatar for haohaolee@users.noreply.github.comHao Li <haohaolee@users.noreply.github.com> 2023-07-21 07:17:28+08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-07-20 19:17:28-04:00
log8a18abfd60392a3adcfc4e6cfa712f63ecf2bf67
tree69ebb2188b3f765da493bf7955effe8c508732a4
parent124448c1b6d73df6f20901888c79435e4d9e3da7
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Remove the SingleThread limitation for ARM (#16442)

The libc++ issue has been fixed in https://reviews.llvm.org/D118391, so we don't have this issue in llvm 16+ closes #6573

1 files changed, 0 insertions(+), 9 deletions(-)

src/Compilation.zig-9
...@@ -1038,15 +1038,6 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {...@@ -1038,15 +1038,6 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
1038 if (must_single_thread and !single_threaded) {1038 if (must_single_thread and !single_threaded) {
1039 return error.TargetRequiresSingleThreaded;1039 return error.TargetRequiresSingleThreaded;
1040 }1040 }
1041 if (!single_threaded and options.link_libcpp) {
1042 if (options.target.cpu.arch.isARM()) {
1043 log.warn(
1044 \\libc++ does not work on multi-threaded ARM yet.
1045 \\For more details: https://github.com/ziglang/zig/issues/6573
1046 , .{});
1047 return error.TargetRequiresSingleThreaded;
1048 }
1049 }
10501041
1051 const llvm_cpu_features: ?[*:0]const u8 = if (build_options.have_llvm and use_llvm) blk: {1042 const llvm_cpu_features: ?[*:0]const u8 = if (build_options.have_llvm and use_llvm) blk: {
1052 var buf = std.ArrayList(u8).init(arena);1043 var buf = std.ArrayList(u8).init(arena);