File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ option(MORPHO_GCSTRESSTEST "Stress tests the garbage collector" OFF)
2323option (MORPHO_BUILD_LINALG "Builds with linear algebra" ON )
2424option (MORPHO_BUILD_SPARSE "Builds with sparse matrix support" ON )
2525option (MORPHO_BUILD_GEOMETRY "Builds with geometry library" ON )
26+ option (MORPHO_BUILD_PROFILER "Builds with profiler" OFF )
2627
2728#-------------------------------------------------------------------------------
2829# Process options
@@ -53,6 +54,11 @@ if(MORPHO_BUILD_GEOMETRY)
5354target_compile_definitions(morpho PUBLIC MORPHO_INCLUDE_GEOMETRY)
5455endif()
5556
57+ # Build with profiler
58+ if(MORPHO_BUILD_PROFILER)
59+ target_compile_definitions(morpho PUBLIC _DEBUG_PROFILER)
60+ endif()
61+
5662#-------------------------------------------------------------------------------
5763# BLAS and LAPACK
5864#-------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 185185//#define MORPHO_OPCODE_USAGE
186186
187187/** @brief Buiild with profile support */
188- #define MORPHO_PROFILER
188+ #ifdef _DEBUG_PROFILER
189+ #define MORPHO_PROFILER
190+ #endif
You can’t perform that action at this time.
0 commit comments