File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1212# package versions
1313klayoutVersion=0.28.17
1414verilatorVersion=5.026
15+ numThreads=$( nproc)
1516
1617_versionCompare () {
1718 local a b IFS=. ; set -f
@@ -54,7 +55,7 @@ _installCommon() {
5455 pushd verilator
5556 autoconf
5657 ./configure --prefix " ${verilatorPrefix} "
57- make -j` nproc `
58+ make -j " ${numThreads} "
5859 make install
5960 popd
6061 rm -r verilator
@@ -162,9 +163,9 @@ _installUbuntuPackages() {
162163 if [ ! -f ${klayoutPrefix} /klayout ]; then
163164 _installKlayoutDependenciesUbuntuAarch64
164165 echo " Installing KLayout for aarch64 architecture"
165- git clone https://github.com/KLayout/klayout.git
166+ git clone --depth=1 -b " v ${klayoutVersion} " https://github.com/KLayout/klayout.git
166167 cd klayout
167- ./build.sh -bin " ${klayoutPrefix} "
168+ ./build.sh -bin " ${klayoutPrefix} " -option -j " ${numThreads} "
168169 else
169170 echo " Klayout is already installed"
170171 fi
@@ -317,6 +318,10 @@ while [ "$#" -gt 0 ]; do
317318 OR_INSTALLER_ARGS=" ${OR_INSTALLER_ARGS} $1 "
318319 constantBuildDir=" true"
319320 ;;
321+ -threads=* )
322+ OR_INSTALLER_ARGS=" ${OR_INSTALLER_ARGS} $1 "
323+ numThreads=${1#* =}
324+ ;;
320325 * )
321326 echo " unknown option: ${1} " >&2
322327 _help
You can’t perform that action at this time.
0 commit comments