Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added C flags to the compiler flags so that the cython code can get d…
Browse files Browse the repository at this point in the history
…ebugging flags
  • Loading branch information
daminton committed Sep 18, 2023
1 parent 4192711 commit 6889de2
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 146 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ FILE(TO_CMAKE_PATH ${PY} PY)
# Set the name of the swiftest library
SET(SWIFTEST_LIBRARY ${SKBUILD_PROJECT_NAME})


# This INCLUDE statement executes code that sets the compile flags for DEBUG,
# RELEASE, PROFILING, and TESTING.
INCLUDE(SetSwiftestFlags)

# The source for the SWIFTEST binary and have it placed in the bin folder
ADD_SUBDIRECTORY(${SRC} ${CMAKE_INSTALL_BINDIR})
ADD_SUBDIRECTORY(${PY})
Expand Down
15 changes: 15 additions & 0 deletions buildscripts/install_editable_debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/zsh
# installs an editable (local) package in debug mode
set -a
SCRIPT_DIR=$(realpath $(dirname $0))
ROOT_DIR=$(realpath ${SCRIPT_DIR}/..)
cd ${ROOT_DIR}
python3 -m pip install --upgrade pip --user
pip install scikit-build-core pyproject-metadata pathspec ninja --user
pip install --config-settings=editable.rebuild=true \
--config-settings=build-dir="build/{wheel_tag}" \
--config-settings=cmake.build-type="Debug" \
--config-settings=cmake.args="-DUSE_SIMD=ON" \
--config-settings=cmake.args="-DUSE_OPENMP=ON" \
--no-build-isolation \
-ve . --user
Loading

0 comments on commit 6889de2

Please sign in to comment.