You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a fairly complex (or will have soon) codebase. I'd like to be able to copy code across different files in different parts of the project tree without changing all of the import references such that they look like ../../../foo.zig.
It would be really nice if Zig also searched for files relative to either the directory that zig was invoked within or the location of the main Zig file.
Alternatively, it could be possible to use a compiler flag to specify additional root paths to search for Zig imports. Something akin to the -I flag implemented by most C compilers.
The text was updated successfully, but these errors were encountered:
zesterer
changed the title
@import() should allow paths relative to the root zig file / location zig was invoked
@import() should search for paths relative to the root zig file / location zig was invoked
Feb 5, 2018
I have a fairly complex (or will have soon) codebase. I'd like to be able to copy code across different files in different parts of the project tree without changing all of the import references such that they look like
../../../foo.zig
.It would be really nice if Zig also searched for files relative to either the directory that zig was invoked within or the location of the main Zig file.
Alternatively, it could be possible to use a compiler flag to specify additional root paths to search for Zig imports. Something akin to the
-I
flag implemented by most C compilers.The text was updated successfully, but these errors were encountered: