#Is it idiomatic to `@import()` a Zig file with an upward relative path?

1 messages · Page 1 of 1 (latest)

wary fjord
#

I have a number of configurations in sub-directories that are used to build a per-architecture binary blob containing arch-specific assets.

All the build steps depend on some common code.

Is it OK to @import a common-code Zig file using an upward relative path? ( @import(../../path/to/common/code) )

Or is this a code smell? 👃

#

Is it idiomatic to @import() a Zig file with an upward relative path?