From f5dcbc552688280be69d684694458396631a3631 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 11 Jan 2025 21:29:34 +0000 Subject: [PATCH] Update build to follow CMake deprecations. --- build.sh | 10 ++++++---- prjtrellis-src | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 2f212cb..f37ff9f 100755 --- a/build.sh +++ b/build.sh @@ -35,7 +35,7 @@ if [ ${THREADS:-0} -ne 0 ]; then fi cat >Toolchain-WASI.cmake <clang ; libraries = --with-program_options --with-iostreams --with-filesystem --with-system ${BOOST_ADD_LIBRARIES} ; END -(cd ${BOOST} && PATH=${WASI_SDK_PATH}/bin:$PATH ./tools/build/src/engine/b2 threading=${BOOST_THREADING} link=static) +(cd ${BOOST} && PATH=${WASI_SDK_PATH}/bin:$PATH ./tools/build/src/engine/b2 threading=${BOOST_THREADING} link=static stage) cmake -B eigen-build -S ${EIGEN} -DCMAKE_INSTALL_PREFIX=$(pwd)/eigen-prefix make -C eigen-build install @@ -86,6 +86,7 @@ cp icestorm-src/icefuzz/timings_*.txt $(pwd)/icestorm-prefix/share/icebox/ cmake -B prjtrellis-build -S prjtrellis-src/libtrellis \ -DCMAKE_TOOLCHAIN_FILE=../Toolchain-WASI.cmake \ + -DCMAKE_PREFIX_PATH=$(pwd)/${BOOST}/stage/ \ -DBOOST_ROOT=$(pwd)/${BOOST} \ -DSTATIC_BUILD=ON \ -DBUILD_SHARED=OFF \ @@ -94,7 +95,7 @@ cmake --build prjtrellis-build cmake -B libtrellis-build -S prjtrellis-src/libtrellis \ -DCMAKE_INSTALL_PREFIX=$(pwd)/libtrellis-prefix \ - -DPYTHON_EXECUTABLE=${PYTHON} \ + -DPython3_EXECUTABLE=${PYTHON} \ -DBUILD_ECPBRAM=OFF \ -DBUILD_ECPPACK=OFF \ -DBUILD_ECPUNPACK=OFF \ @@ -122,8 +123,9 @@ ${PYTHON} -m venv apycula-prefix mkdir -p nextpnr-build cmake -B nextpnr-build -S nextpnr-src \ -DCMAKE_TOOLCHAIN_FILE=../Toolchain-WASI.cmake \ + -DCMAKE_PREFIX_PATH=$(pwd)/${BOOST}/stage/ \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ - -DPYTHON_EXECUTABLE=${PYTHON} \ + -DPython3_EXECUTABLE=${PYTHON} \ -DSTATIC_BUILD=ON \ -DBOOST_ROOT=$(pwd)/${BOOST} \ -DEigen3_DIR=$(pwd)/eigen-prefix/share/eigen3/cmake \ diff --git a/prjtrellis-src b/prjtrellis-src index fce5a14..14ac883 160000 --- a/prjtrellis-src +++ b/prjtrellis-src @@ -1 +1 @@ -Subproject commit fce5a14b8f0a4ba8ac4d6d684516b3695fc8b9cd +Subproject commit 14ac883fa639b11fdc98f3cdef87a5d01f79e73d