Add option to link against "libprofiler".

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2021-03-18 14:02:07 -07:00
parent d5021e7ed5
commit 76c6e1248c

View File

@ -18,6 +18,7 @@ option(COVERAGE "Add code coverage info" OFF)
option(STATIC_BUILD "Create static build" OFF)
option(EXTERNAL_CHIPDB "Create build with pre-built chipdb binaries" OFF)
option(WERROR "pass -Werror to compiler (used for CI)" OFF)
option(PROFILER "Link against libprofiler" OFF)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
@ -238,6 +239,9 @@ if (USE_THREADS)
list(APPEND EXTRA_LIB_DEPS absl::flat_hash_map)
list(APPEND EXTRA_LIB_DEPS absl::flat_hash_set)
endif()
if(PROFILER)
list(APPEND EXTRA_LIB_DEPS profiler)
endif()
foreach (family ${ARCH})
message(STATUS "Configuring architecture: ${family}")