#Export a symbol from a non-root file
1 messages · Page 1 of 1 (latest)
Zig doesn't do anything with files that you don't reference
yup
so even @importing something will not get compiled if you don't use anything from it
Is comptime { thatmodule } the only workaround? Can't I do anything from the build script?
i do not think there's a way around it, other than forcing it at comptime
:( k
Does comptime { _ = @import("file.zig"); } make any different in your root file?
yup. trying to develop teaching resources so needing to introduce those semantics is quite a drawback. I think I'll rework my build process to build two roots and link them
ah. theres a special case I can use for compiler_rt