From 3bb2101a25827bed5e3da14b7d3978cd7a40e425 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 27 Feb 2024 17:01:56 -0800 Subject: [PATCH] Always checkout CIRCT/LLVM shallow --- scripts/build-circt-from-source.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/build-circt-from-source.sh b/scripts/build-circt-from-source.sh index f9bb727e..56d7966b 100755 --- a/scripts/build-circt-from-source.sh +++ b/scripts/build-circt-from-source.sh @@ -49,13 +49,17 @@ fi -echo "Cloning CIRCT submodules" +echo "Cloning CIRCT" ( cd $RDIR/tools - git submodule update --init circt - cd circt + git submodule update --init --progress circt +) +echo "Cloning CIRCT/LLVM" +( + cd $RDIR/tools/circt git submodule init - git submodule update + git config submodule.llvm.shallow true + git submodule update --recommend-shallow --progress llvm ) echo "Building CIRCT's LLVM/MLIR"