aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-02 10:38:27 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-03-02 10:38:27 -0500
commit67b4de33d2729fdb21337e5a0e05f6273bce23ba (patch)
tree2f79dc7eed0d993e82f777b3f90817731c2d5314 /src/link.cpp
parent764205ac13cc340ff6dcce74667c32dafe24e510 (diff)
downloadzig-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.cpp2
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);