diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-04-03 19:59:39 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-06-01 14:06:20 +0200 |
commit | 2e7d457987eb19b5ef7c8659d843f2fe01a66506 (patch) | |
tree | 7ad7f23bce8dd5ccf123aa62d12d65d59d3f02e9 | |
parent | 2551b1b06795e9934b56fc2242f34f9bb6880c8c (diff) | |
download | libgit2-2e7d457987eb19b5ef7c8659d843f2fe01a66506.tar.gz |
cmake: remove option to add profiling flags
We currently have an option that adds options for profiling to both our
CFLAGS and LDFLAGS. Having such flags behind various build options is
not really sensible at all, since users should instead set up those
flags via environment variables supported by CMake itself.
Let's remove this option.
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b29f44dc..7d232f433 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,6 @@ OPTION(THREADSAFE "Build libgit2 as threadsafe" ON) OPTION(BUILD_CLAR "Build Tests using the Clar suite" ON) OPTION(BUILD_EXAMPLES "Build library usage example apps" OFF) OPTION(BUILD_FUZZERS "Build the fuzz targets" OFF) -OPTION(PROFILE "Generate profiling information" OFF) OPTION(ENABLE_TRACE "Enables tracing support" ON) OPTION(LIBGIT2_FILENAME "Name of the produced binary" OFF) OPTION(USE_SSH "Link with libssh2 to enable SSH support" ON) @@ -265,11 +264,6 @@ ELSE () IF("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") DISABLE_WARNINGS(documentation-deprecated-sync) ENDIF() - - IF (PROFILE) - SET(CMAKE_C_FLAGS "-pg ${CMAKE_C_FLAGS}") - SET(CMAKE_EXE_LINKER_FLAGS "-pg ${CMAKE_EXE_LINKER_FLAGS}") - ENDIF () ENDIF() # Ensure that MinGW provides the correct header files. |