mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
9836f1b2f9
* add support for compiling Objective-C++ code Prior to this change, calling `step.addCSourceFiles` with Obj-C++ file extensions (`.mm`) would result in an error due to Zig not being aware of that extension. Clang supports an `-ObjC++` compilation mode flag, but it was only possible to use if you violated standards and renamed your `.mm` Obj-C++ files to `.m` (Obj-C) to workaround Zig being unaware of the extension. This change makes Zig aware of `.mm` files so they can be compiled, enabling compilation of projects such as [Google's Dawn WebGPU](https://dawn.googlesource.com/dawn/) using a `build.zig` file only. Helps hexops/mach#21 Signed-off-by: Stephen Gutekanst <stephen@hexops.com> * test/standalone: add ObjC++ compilation/linking test Based on the existing objc example, just tweaked for ObjC++. Signed-off-by: Stephen Gutekanst <stephen@hexops.com> |
||
---|---|---|
.. | ||
brace_expansion | ||
c_compiler | ||
cat | ||
empty_env | ||
global_linkage | ||
guess_number | ||
hello_world | ||
install_raw_hex | ||
issue_339 | ||
issue_794 | ||
issue_5825 | ||
issue_7030 | ||
issue_8550 | ||
issue_9402 | ||
issue_9693 | ||
issue_9812 | ||
link_common_symbols | ||
link_frameworks | ||
link_interdependent_static_c_libs | ||
link_static_lib_as_system_lib | ||
load_dynamic_library | ||
main_pkg_path | ||
main_return_error | ||
mix_c_files | ||
mix_o_files | ||
objc | ||
objcpp | ||
pie | ||
pkg_import | ||
shared_library | ||
static_c_lib | ||
use_alias |