#embed generated file

1 messages · Page 1 of 1 (latest)

analog thistle
#

I want to have my build.zig generate a look up table that gets embedded using @embedFile or similar
is there a way to do that?
the reason im not using comptime for it is so that the build system caches it, that way I dont need to recompute it every time

steady delta
#

Create a module in build.zig with the generated LazyPath as its root, and then @embedFile("module-name");.

analog thistle
steady delta
#

It was added for this exact use case.

runic locust
steady delta
#

the name of the field is root_source_path or something