Merge pull request #22875 from kitaisreal/utils-memcpy-bench-build-position-independent-code-disabled

Util `memcpy-bench` is built only when position independent code is disabled
This commit is contained in:
alexey-milovidov 2021-04-09 09:18:56 +03:00 committed by GitHub
commit 6ce5bead4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,8 @@ if (NOT DEFINED ENABLE_UTILS OR ENABLE_UTILS)
add_subdirectory (keeper-data-dumper) add_subdirectory (keeper-data-dumper)
endif () 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) add_subdirectory (memcpy-bench)
endif () endif ()
endif () endif ()