Skip to content

Commit

Permalink
ci: build wheels with debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Mar 8, 2024
1 parent 0b50e4f commit 2a3c884
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/scripts/python_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function build_drivers {
local -r source_dir="$1"
local -r build_dir="$2/${VCPKG_ARCH}"

: ${CMAKE_BUILD_TYPE:=release}
: ${CMAKE_BUILD_TYPE:=RelWithDebInfo}
: ${CMAKE_UNITY_BUILD:=ON}
: ${CMAKE_GENERATOR:=Ninja}
: ${VCPKG_ROOT:=/opt/vcpkg}
Expand Down
3 changes: 3 additions & 0 deletions ci/scripts/python_wheel_unix_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ check_visibility $ADBC_SNOWFLAKE_LIBRARY
# Get the latest pip so we have in-tree-build by default
python -m pip install --upgrade pip auditwheel cibuildwheel delocate setuptools wheel

# Build with Cython debug info
export ADBC_BUILD_TYPE="debug"

for component in $COMPONENTS; do
pushd ${source_dir}/python/$component

Expand Down
5 changes: 4 additions & 1 deletion ci/scripts/python_wheel_windows_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set build_dir=%2

echo "=== (%PYTHON_VERSION%) Building ADBC libpq driver ==="

set CMAKE_BUILD_TYPE=release
set CMAKE_BUILD_TYPE=RelWithDebInfo
set CMAKE_GENERATOR=Visual Studio 17 2022
set CMAKE_GENERATOR_PLATFORM=x64
set CMAKE_UNITY_BUILD=ON
Expand Down Expand Up @@ -61,6 +61,9 @@ set ADBC_POSTGRESQL_LIBRARY=%build_dir%\bin\adbc_driver_postgresql.dll
set ADBC_SQLITE_LIBRARY=%build_dir%\bin\adbc_driver_sqlite.dll
set ADBC_SNOWFLAKE_LIBRARY=%build_dir%\bin\adbc_driver_snowflake.dll

# Build with Cython debug info
set ADBC_BUILD_TYPE=debug

popd

python -m pip install --upgrade pip delvewheel wheel || exit /B 1
Expand Down

0 comments on commit 2a3c884

Please sign in to comment.