| ... | @@ -2776,6 +2776,15 @@ pub fn addCCArgs( | ... | @@ -2776,6 +2776,15 @@ pub fn addCCArgs( |
| 2776 | try argv.append("-D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS"); | 2776 | try argv.append("-D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS"); |
| 2777 | } | 2777 | } |
| 2778 | | 2778 | |
| | 2779 | if (comp.bin_file.options.link_libunwind) { |
| | 2780 | const libunwind_include_path = try std.fs.path.join(arena, &[_][]const u8{ |
| | 2781 | comp.zig_lib_directory.path.?, "libunwind", "include", |
| | 2782 | }); |
| | 2783 | |
| | 2784 | try argv.append("-isystem"); |
| | 2785 | try argv.append(libunwind_include_path); |
| | 2786 | } |
| | 2787 | |
| 2779 | const llvm_triple = try @import("codegen/llvm.zig").targetTriple(arena, target); | 2788 | const llvm_triple = try @import("codegen/llvm.zig").targetTriple(arena, target); |
| 2780 | try argv.appendSlice(&[_][]const u8{ "-target", llvm_triple }); | 2789 | try argv.appendSlice(&[_][]const u8{ "-target", llvm_triple }); |
| 2781 | | 2790 | |