aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorsin-ack <sin-ack@protonmail.com>2024-08-07 13:30:39 +0000
committerAndrew Kelley <andrew@ziglang.org>2024-08-08 17:42:11 -0700
commit2cfad202045632945b5007e1d42c2f8a326be44a (patch)
tree9851f96248eb1f4b704996917c7c4572c5f3c6f3 /src/main.zig
parenta9b65b6fd4021b6b303b6a4d35cfaba56aac0c32 (diff)
downloadzig-2cfad202045632945b5007e1d42c2f8a326be44a.tar.gz
zig-2cfad202045632945b5007e1d42c2f8a326be44a.zip
Compilation: Mark .c++ files as having C++ extension
Some projects, such as Cap'n Proto, use .c++ as their filenames. Without this, compiling them fails because zig c++ will fall back to using the linker.
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/main.zig b/src/main.zig
index 4213d316be..62c721f157 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -387,27 +387,27 @@ const usage_build_generic =
\\ zig translate-c [options] [file]
\\
\\Supported file types:
- \\ .zig Zig source code
- \\ .o ELF object file
- \\ .o Mach-O (macOS) object file
- \\ .o WebAssembly object file
- \\ .obj COFF (Windows) object file
- \\ .lib COFF (Windows) static library
- \\ .a ELF static library
- \\ .a Mach-O (macOS) static library
- \\ .a WebAssembly static library
- \\ .so ELF shared object (dynamic link)
- \\ .dll Windows Dynamic Link Library
- \\ .dylib Mach-O (macOS) dynamic library
- \\ .tbd (macOS) text-based dylib definition
- \\ .s Target-specific assembly source code
- \\ .S Assembly with C preprocessor (requires LLVM extensions)
- \\ .c C source code (requires LLVM extensions)
- \\ .cxx .cc .C .cpp .stub C++ source code (requires LLVM extensions)
- \\ .m Objective-C source code (requires LLVM extensions)
- \\ .mm Objective-C++ source code (requires LLVM extensions)
- \\ .bc LLVM IR Module (requires LLVM extensions)
- \\ .cu Cuda source code (requires LLVM extensions)
+ \\ .zig Zig source code
+ \\ .o ELF object file
+ \\ .o Mach-O (macOS) object file
+ \\ .o WebAssembly object file
+ \\ .obj COFF (Windows) object file
+ \\ .lib COFF (Windows) static library
+ \\ .a ELF static library
+ \\ .a Mach-O (macOS) static library
+ \\ .a WebAssembly static library
+ \\ .so ELF shared object (dynamic link)
+ \\ .dll Windows Dynamic Link Library
+ \\ .dylib Mach-O (macOS) dynamic library
+ \\ .tbd (macOS) text-based dylib definition
+ \\ .s Target-specific assembly source code
+ \\ .S Assembly with C preprocessor (requires LLVM extensions)
+ \\ .c C source code (requires LLVM extensions)
+ \\ .cxx .cc .C .cpp .c++ .stub C++ source code (requires LLVM extensions)
+ \\ .m Objective-C source code (requires LLVM extensions)
+ \\ .mm Objective-C++ source code (requires LLVM extensions)
+ \\ .bc LLVM IR Module (requires LLVM extensions)
+ \\ .cu Cuda source code (requires LLVM extensions)
\\
\\General Options:
\\ -h, --help Print this help and exit