diff options
| author | Krzysztof Wolicki <der.teufel.mail@gmail.com> | 2023-10-10 20:29:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 14:29:26 -0400 |
| commit | 7abf9b3a83b3d37bbeeac7dc2df238c3b94aa148 (patch) | |
| tree | d48ec6e73ae9b09b08b737f4deecf6deed68773e /build.zig | |
| parent | 2ca7cc46c41dc5fe91fe385df4f3330634bd88f3 (diff) | |
| download | zig-7abf9b3a83b3d37bbeeac7dc2df238c3b94aa148.tar.gz zig-7abf9b3a83b3d37bbeeac7dc2df238c3b94aa148.zip | |
Step.Compile: add options struct for `addCSourceFiles` (#17420)
Closes #17410
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -693,7 +693,10 @@ fn addStaticLlvmOptionsToExe(exe: *std.Build.Step.Compile) !void { // in a dependency on llvm::cfg::Update<llvm::BasicBlock*>::dump() which is // unavailable when LLVM is compiled in Release mode. const zig_cpp_cflags = exe_cflags ++ [_][]const u8{"-DNDEBUG=1"}; - exe.addCSourceFiles(&zig_cpp_sources, &zig_cpp_cflags); + exe.addCSourceFiles(.{ + .files = &zig_cpp_sources, + .flags = &zig_cpp_cflags, + }); for (clang_libs) |lib_name| { exe.linkSystemLibrary(lib_name); |
