#@embedFile on an artifact

1 messages · Page 1 of 1 (latest)

south rose
#

you can @embedFile modules, so you could get getOutputSource the WASM, then addAnonymousModule with the wasm FileSource

onyx slate
#

i dont understand. a valid module needs to be zig code, no?

south rose
#

just tested and it does work. I think it's a holdover from std.build.Pkg

#

there are some changes to modules coming down the pipe iirc, so I'd expect your assumption that it needs to be .zig to hold after those changes because the current method is definitely weird

onyx slate
#

:/

south rose
umbral dirge
#

#1019652020308824145 please

onyx slate
#

well considering andrew has exactly this kinda thing in the example this seems intentional

#

oh my bad, wrong forum. sorry

south rose
#

sorry hadn't noticed