From 003b0c7c2b0467e2b7fc667981aa8bd1376bb400 Mon Sep 17 00:00:00 2001 From: Ben Howe <bhowe@nvidia.com> Date: Sat, 11 Jan 2025 00:17:15 +0000 Subject: [PATCH] Update build_wheels to honor the requested build type Signed-off-by: Ben Howe <bhowe@nvidia.com> --- .github/workflows/scripts/build_wheels.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/build_wheels.sh b/.github/workflows/scripts/build_wheels.sh index e2d171f..056176d 100755 --- a/.github/workflows/scripts/build_wheels.sh +++ b/.github/workflows/scripts/build_wheels.sh @@ -82,7 +82,10 @@ export CXX=g++ cd libs/qec -SKBUILD_CMAKE_ARGS="-DCUDAQ_DIR=$cudaq_prefix/lib/cmake/cudaq;-DCMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN=/opt/rh/gcc-toolset-11/root/usr/lib/gcc/x86_64-redhat-linux/11/" \ +SKBUILD_CMAKE_ARGS="-DCUDAQ_DIR=$cudaq_prefix/lib/cmake/cudaq" +SKBUILD_CMAKE_ARGS+=";-DCMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN=/opt/rh/gcc-toolset-11/root/usr/lib/gcc/x86_64-redhat-linux/11/" +SKBUILD_CMAKE_ARGS+=";-DCMAKE_BUILD_TYPE=$build_type" +export SKBUILD_CMAKE_ARGS $python -m build --wheel CUDAQ_EXCLUDE_LIST=$(for f in $(find $cudaq_prefix/lib -name "*.so" -printf "%P\n" | sort); do echo "--exclude $f"; done | tr '\n' ' ') @@ -97,7 +100,10 @@ $python -m auditwheel -v repair dist/*.whl $CUDAQ_EXCLUDE_LIST \ cd ../solvers -SKBUILD_CMAKE_ARGS="-DCUDAQ_DIR=$cudaq_prefix/lib/cmake/cudaq;-DCMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN=/opt/rh/gcc-toolset-11/root/usr/lib/gcc/x86_64-redhat-linux/11/" \ +SKBUILD_CMAKE_ARGS="-DCUDAQ_DIR=$cudaq_prefix/lib/cmake/cudaq" +SKBUILD_CMAKE_ARGS+=";-DCMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN=/opt/rh/gcc-toolset-11/root/usr/lib/gcc/x86_64-redhat-linux/11/;" +SKBUILD_CMAKE_ARGS+=";-DCMAKE_BUILD_TYPE=$build_type" \ +export SKBUILD_CMAKE_ARGS $python -m build --wheel LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)/_skbuild/lib" \