aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-06-18 18:17:26 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-06-18 18:17:26 -0400
commit355319fb674073234ea2f356a310577fb982f72b (patch)
treef008344372e2110195572bc0e10b59f0f0538043 /src/codegen.cpp
parent7e443022609e31ff2636d2c43c32f3c5570793d1 (diff)
downloadzig-355319fb674073234ea2f356a310577fb982f72b.tar.gz
zig-355319fb674073234ea2f356a310577fb982f72b.zip
zig cc: add missing cxxabi include path
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 6c3fdddfb1..a0e49ccf9e 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -9475,9 +9475,15 @@ void add_cc_args(CodeGen *g, ZigList<const char *> &args, const char *out_dep_pa
const char *libcxx_include_path = buf_ptr(buf_sprintf("%s" OS_SEP "libcxx" OS_SEP "include",
buf_ptr(g->zig_lib_dir)));
+ const char *libcxxabi_include_path = buf_ptr(buf_sprintf("%s" OS_SEP "libcxxabi" OS_SEP "include",
+ buf_ptr(g->zig_lib_dir)));
+
args.append("-isystem");
args.append(libcxx_include_path);
+ args.append("-isystem");
+ args.append(libcxxabi_include_path);
+
if (target_abi_is_musl(g->zig_target->abi)) {
args.append("-D_LIBCPP_HAS_MUSL_LIBC");
}