diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-27 13:39:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-27 13:39:28 -0700 |
| commit | 0e6d2184cacf2dd1fad7508b2f9ae99d78763148 (patch) | |
| tree | 96431e859e91a817e1f0e8cc990b658a8f8bf957 /src/main.zig | |
| parent | f589a66062fb99c737ab84dc5106add596cc03d4 (diff) | |
| download | zig-0e6d2184cacf2dd1fad7508b2f9ae99d78763148.tar.gz zig-0e6d2184cacf2dd1fad7508b2f9ae99d78763148.zip | |
stage2: .stub files are yet another c++ source file extension
however .cu files are a superset of c++.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 52b1353b9d..280c1aa9da 100644 --- a/src/main.zig +++ b/src/main.zig @@ -294,11 +294,11 @@ const usage_build_generic = \\ .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++ 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 .stub Cuda source code (requires LLVM extensions) + \\ .cu Cuda source code (requires LLVM extensions) \\ \\General Options: \\ -h, --help Print this help and exit @@ -1248,7 +1248,7 @@ fn buildOutputType( .object, .static_library, .shared_library => { try link_objects.append(.{ .path = arg }); }, - .assembly, .c, .cpp, .h, .ll, .bc, .m, .mm, .cuda => { + .assembly, .c, .cpp, .h, .ll, .bc, .m, .mm, .cu => { try c_source_files.append(.{ .src_path = arg, .extra_flags = try arena.dupe([]const u8, extra_cflags.items), @@ -1316,7 +1316,7 @@ fn buildOutputType( .positional => { const file_ext = Compilation.classifyFileExt(mem.sliceTo(it.only_arg, 0)); switch (file_ext) { - .assembly, .c, .cpp, .ll, .bc, .h, .m, .mm, .cuda => { + .assembly, .c, .cpp, .ll, .bc, .h, .m, .mm, .cu => { try c_source_files.append(.{ .src_path = it.only_arg }); }, .unknown, .shared_library, .object, .static_library => { |
