check_boost_version("${PROJECT_SOURCE_DIR}/src/boost" ${version})
set(source_dir
SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/boost")
- elseif(version VERSION_GREATER 1.67)
+ elseif(version VERSION_GREATER 1.72)
message(FATAL_ERROR "Unknown BOOST_REQUESTED_VERSION: ${version}")
else()
message(STATUS "boost will be downloaded...")
# NOTE: If you change this version number make sure the package is available
# at the three URLs below (may involve uploading to download.ceph.com)
- set(boost_version 1.67.0)
- set(boost_sha256 2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba)
+ set(boost_version 1.72.0)
+ set(boost_sha256 59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722)
string(REPLACE "." "_" boost_version_underscore ${boost_version} )
set(boost_url
https://dl.bintray.com/boostorg/release/${boost_version}/source/boost_${boost_version_underscore}.tar.bz2)
include(ExternalProject)
ExternalProject_Add(Boost
${source_dir}
- PATCH_COMMAND
- patch -d <SOURCE_DIR> -p1 < ${CMAKE_MODULE_PATH}/boost_context_asm_arm_syntax_unified.patch &&
- patch -d <SOURCE_DIR> -p1 < ${CMAKE_MODULE_PATH}/boost_lockfree_queue_valgrind_error.patch
CONFIGURE_COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${configure_command}
BUILD_COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${build_command}
BUILD_IN_SOURCE 1
+++ /dev/null
-diff --git a/libs/context/src/asm/jump_arm_aapcs_elf_gas.S b/src/Boost/libs/context/src/asm/jump_arm_aapcs_elf_gas.S
-index d0f7fa2..58d11b0 100644
---- a/libs/context/src/asm/jump_arm_aapcs_elf_gas.S
-+++ b/libs/context/src/asm/jump_arm_aapcs_elf_gas.S
-@@ -42,6 +42,7 @@
- .globl jump_fcontext
- .align 2
- .type jump_fcontext,%function
-+.syntax unified
- jump_fcontext:
- @ save LR as PC
- push {lr}
-diff --git a/libs/context/src/asm/make_arm_aapcs_elf_gas.S b/src/Boost/libs/context/src/asm/make_arm_aapcs_elf_gas.S
-index 98819a2..b88ff68 100644
---- a/libs/context/src/asm/make_arm_aapcs_elf_gas.S
-+++ b/libs/context/src/asm/make_arm_aapcs_elf_gas.S
-@@ -42,6 +42,7 @@
- .globl make_fcontext
- .align 2
- .type make_fcontext,%function
-+.syntax unified
- make_fcontext:
- @ shift address in A1 to lower 16 byte boundary
- bic a1, a1, #15
-diff --git a/libs/context/src/asm/ontop_arm_aapcs_elf_gas.S b/src/Boost/libs/context/src/asm/ontop_arm_aapcs_elf_gas.S
-index 9d9198f..2efebbb 100644
---- a/libs/context/src/asm/ontop_arm_aapcs_elf_gas.S
-+++ b/libs/context/src/asm/ontop_arm_aapcs_elf_gas.S
-@@ -42,6 +42,7 @@
- .globl ontop_fcontext
- .align 2
- .type ontop_fcontext,%function
-+.syntax unified
- ontop_fcontext:
- @ save LR as PC
- push {lr}
+++ /dev/null
---- a/boost/lockfree/queue.hpp
-+++ b/boost/lockfree/queue.hpp
-@@ -108,7 +108,7 @@
- typedef typename detail::select_tagged_handle<node, node_based>::handle_type handle_type;
-
- node(T const & v, handle_type null_handle):
-- data(v)//, next(tagged_node_handle(0, 0))
-+ next(tagged_node_handle(null_handle, 0)), data(v)
- {
- /* increment tag to avoid ABA problem */
- tagged_node_handle old_next = next.load(memory_order_relaxed);