From d1446faa6b1cc8d9da104a7a38970dd342e7c485 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Fri, 9 Apr 2021 00:16:41 +0300 Subject: [PATCH] Utils mempcy bench build when position independent code disabled --- utils/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index afeda751ea5..04d9a07008e 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -37,7 +37,8 @@ if (NOT DEFINED ENABLE_UTILS OR ENABLE_UTILS) add_subdirectory (keeper-data-dumper) endif () - if (NOT OS_DARWIN) + # memcpy_jart.S contains position dependent code + if (NOT CMAKE_POSITION_INDEPENDENT_CODE AND NOT OS_DARWIN) add_subdirectory (memcpy-bench) endif () endif ()