Skip to content

Commit

Permalink
Rename WarpX_TEST_DEBUG as WarpX_BACKTRACE_INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Jan 14, 2025
1 parent c0d8481 commit 24c1853
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
df -h
# configure
export AMReX_CMAKE_FLAGS="-DAMReX_ASSERTIONS=ON -DAMReX_TESTING=ON"
export WARPX_TEST_FLAGS="-DWarpX_TEST_CLEANUP=ON -DWarpX_TEST_FPETRAP=ON -DWarpX_TEST_DEBUG=ON"
export WARPX_TEST_FLAGS="-DWarpX_TEST_CLEANUP=ON -DWarpX_TEST_FPETRAP=ON -DWarpX_BACKTRACE_INFO=ON"
cmake -S . -B build \
${AMReX_CMAKE_FLAGS} \
${WARPX_CMAKE_FLAGS} \
Expand Down
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ mark_as_advanced(WarpX_TEST_CLEANUP)
mark_as_advanced(WarpX_TEST_DEBUGGER)
mark_as_advanced(WarpX_TEST_FPETRAP)

# Advanced option to run CI tests with the -g compile option
option(WarpX_TEST_DEBUG "Compile tests with -g1 for symbols (for CI)" OFF)
mark_as_advanced(WarpX_TEST_DEBUG)
if(WarpX_TEST_DEBUG)
# Advanced option to compile with the -g1 option for minimal debug symbols
# (useful to see, e.g., line numbers in backtraces)
option(WarpX_BACKTRACE_INFO "Compile tests with -g1 for debug symbols" OFF)
mark_as_advanced(WarpX_BACKTRACE_INFO)
if(WarpX_BACKTRACE_INFO)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g1")
endif()

Expand Down
8 changes: 4 additions & 4 deletions Docs/source/install/cmake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ CMake Option Default & Values Des
``WarpX_pybind11_repo`` ``https://github.com/pybind/pybind11.git`` Repository URI to pull and build pybind11 from
``WarpX_pybind11_branch`` *we set and maintain a compatible commit* Repository branch for ``WarpX_pybind11_repo``
``WarpX_pybind11_internal`` **ON**/OFF Needs a pre-installed pybind11 library if set to ``OFF``
``WarpX_TEST_CLEANUP`` ON/**OFF** Clean up test directories (for CI)
``WarpX_TEST_DEBUG`` ON/**OFF** Compile tests with -g1 for symbols (for CI)
``WarpX_TEST_DEBUGGER`` ON/**OFF** Run tests without AMReX signal handling (to attach debuggers)
``WarpX_TEST_FPETRAP`` ON/**OFF** Run tests with FPE-trapping runtime parameters (for CI)
``WarpX_TEST_CLEANUP`` ON/**OFF** Clean up automated test directories
``WarpX_TEST_DEBUGGER`` ON/**OFF** Run automated tests without AMReX signal handling (to attach debuggers)
``WarpX_TEST_FPETRAP`` ON/**OFF** Run automated tests with FPE-trapping runtime parameters
``WarpX_BACKTRACE_INFO`` ON/**OFF** Compile with -g1 for minimal debug symbols (currently used in CI tests)
============================= ============================================== ===========================================================

For example, one can also build against a local AMReX copy.
Expand Down

0 comments on commit 24c1853

Please sign in to comment.