#Including C files with specific flags

1 messages · Page 1 of 1 (latest)

small anchor
#

Suppose I add some C files, and modify my build.zig file:

        fabedit.addCSourceFiles(.{
            .files = &[_][]const u8{
                "third_party/microtar/src/microtar.c",
                "third_party/janet/janet.c",
            },
        });

I want these to be compiled with certain C flags, regardless of the build mode of the actual zig project. E.g. "-O3 -Wall -fomit-frame-pointer".

How can I do this?

willow temple
#

it has a flags field

small anchor
#

Oh i'm retarded

#

lol

#

Thanks!