diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-02 10:38:27 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-02 10:38:27 -0500 |
| commit | 67b4de33d2729fdb21337e5a0e05f6273bce23ba (patch) | |
| tree | 2f79dc7eed0d993e82f777b3f90817731c2d5314 /src/link.cpp | |
| parent | 764205ac13cc340ff6dcce74667c32dafe24e510 (diff) | |
| download | zig-67b4de33d2729fdb21337e5a0e05f6273bce23ba.tar.gz zig-67b4de33d2729fdb21337e5a0e05f6273bce23ba.zip | |
compile error for import outside package path
closes #2024
there's a new cli option `--main-pkg-path` which you can use to choose
a different root package directory besides the one inferred from the
root source file
and a corresponding build.zig API:
foo.setMainPkgPath(path)
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp index 7eb8cb111f..2e30dc6230 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -41,7 +41,7 @@ static Buf *build_a_raw(CodeGen *parent_gen, const char *aname, Buf *full_path) child_out_type = OutTypeObj; } - CodeGen *child_gen = codegen_create(full_path, parent_gen->zig_target, child_out_type, + CodeGen *child_gen = codegen_create(nullptr, full_path, parent_gen->zig_target, child_out_type, parent_gen->build_mode, parent_gen->zig_lib_dir, parent_gen->zig_std_dir, parent_gen->libc); |
