I have a src/ directory containing both c and assembly files. How can I get all of the files in src and add them all to an exe? should i even be doing this? https://ziggit.dev/t/zig-build-how-to-handle-an-unknown-amount-of-files-in-a-folder/8543/3 says to not iterate a directory since it messes with --watch, but i dont really care about that
Ziggit
Use b.build_root.handle to get a std.fs.Dir to the root of your project, open the directory of your resources via this will let you use the iterate() function to get a directory iterator. b.addSystemCommand is your friend use addInputFileArg too, otherwise zig won’t rebuild when the inputs change. note both of those functions are on the s...