From 87aa052e2395ab3cab89b8afaaf6156bfd3f930b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 7 Jan 2021 02:58:27 -0700 Subject: [PATCH] ci: pass --override-lib-dir to emit std lib docs Otherwise we get errors from conflicting std libs. --- ci/azure/linux_script | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/azure/linux_script b/ci/azure/linux_script index 935f5b30db..e96a16b41b 100755 --- a/ci/azure/linux_script +++ b/ci/azure/linux_script @@ -73,7 +73,10 @@ tidy -qe ../zig-cache/langref.html if [ "${BUILD_REASON}" != "PullRequest" ]; then # Produce the experimental std lib documentation. mkdir -p release/docs/std - release/bin/zig test ../lib/std/std.zig -femit-docs=release/docs/std -fno-emit-bin + release/bin/zig test ../lib/std/std.zig \ + --override-lib-dir ../lib \ + -femit-docs=release/docs/std \ + -fno-emit-bin mv ../LICENSE release/ mv ../zig-cache/langref.html release/docs/