-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
support compiling and linking c++ code #4786
Copy link
Copy link
Closed
Labels
acceptedThis proposal is planned.This proposal is planned.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.
Milestone
Metadata
Metadata
Assignees
Labels
acceptedThis proposal is planned.This proposal is planned.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig supports compiling and linking C code because we already depend on libclang for translate-c. But Clang is also a c++ compiler. It's not really much more work to also support compiling and linking c++ code. I looked into it and it looks like it amounts to about 20k more lines to ship both libc++ and libc++abi.
Note that this does not include translating C++ code.
This would go a long way toward #853, and it would make
zig cceven more useful. It also serves the use case of using zig as a build system and package manager for C/C++ projects.