Merge pull request #28843 from tchaikov/wip-armhf-build

cmake, pybind: fix build on armhf

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Kefu Chai 2019-07-09 16:03:35 +08:00 committed by GitHub
commit dadc66a58e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,11 @@ function(do_build_boost version)
if(with_python_version)
list(APPEND b2 python=${with_python_version})
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm|ARM")
list(APPEND b2 abi=aapcs)
list(APPEND b2 architecture=arm)
list(APPEND b2 binary-format=elf)
endif()
set(build_command
${b2} headers stage
#"--buildid=ceph" # changes lib names--can omit for static