From 100c7eff255b43b96753c51875681d1883d8ca61 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Sat, 20 Oct 2018 19:54:05 -0700 Subject: [PATCH] build: fix ivy package-dist generation (#26629) PR Close #26629 --- scripts/build-packages-dist.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build-packages-dist.sh b/scripts/build-packages-dist.sh index ac1d21f96c..90aa89fa61 100755 --- a/scripts/build-packages-dist.sh +++ b/scripts/build-packages-dist.sh @@ -63,6 +63,12 @@ buildTargetPackages "$LEGACY_TARGETS" "dist/packages-dist" "legacy" "Production" IVY_JIT_TARGETS=`bazel query --output=label 'attr("tags", "\[.*ivy-jit.*\]", //packages/...) intersect kind(".*_package", //packages/...)'` IVY_LOCAL_TARGETS=`bazel query --output=label 'attr("tags", "\[.*ivy-local.*\]", //packages/...) intersect kind(".*_package", //packages/...)'` + +# A clean is needed since build artifacts from previous build can break the following build +bazel clean buildTargetPackages "$IVY_JIT_TARGETS" "dist/packages-dist-ivy-jit" "jit" "Ivy JIT" + +# A clean is needed since build artifacts from previous build can break the following build +bazel clean buildTargetPackages "$IVY_LOCAL_TARGETS" "dist/packages-dist-ivy-local" "local" "Ivy AOT"