aboutsummaryrefslogtreecommitdiff
path: root/src/target.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-27 22:35:13 -0400
committerGitHub <noreply@github.com>2020-03-27 22:35:13 -0400
commit107b5196f65c4e77c6c61ff830d6eb7de8b8842b (patch)
tree1993c71221ff70dc6abacb3c360b03909fd5ca89 /src/target.cpp
parent33819ecfbcde6a96262c4ec5cb38e3228ead83c7 (diff)
parenta25874108470f97c5c58d72b2df49a9085c79b2e (diff)
downloadzig-107b5196f65c4e77c6c61ff830d6eb7de8b8842b.tar.gz
zig-107b5196f65c4e77c6c61ff830d6eb7de8b8842b.zip
Merge pull request #4827 from ziglang/zig-cpp
support compiling and linking c++ code
Diffstat (limited to 'src/target.cpp')
-rw-r--r--src/target.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target.cpp b/src/target.cpp
index 63360fc029..59b1addc33 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -1229,6 +1229,13 @@ bool target_is_libc_lib_name(const ZigTarget *target, const char *name) {
return false;
}
+bool target_is_libcpp_lib_name(const ZigTarget *target, const char *name) {
+ if (strcmp(name, "c++") == 0 || strcmp(name, "c++abi") == 0)
+ return true;
+
+ return false;
+}
+
size_t target_libc_count(void) {
return array_length(libcs_available);
}