File tree 2 files changed +14
-8
lines changed
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 2
2
option (FORCE_BUNDLED_BOOST "Always build boost, instead of using system version" OFF )
3
3
set (
4
4
BOOST_COMPONENTS
5
+ chrono
5
6
context
7
+ date_time
6
8
fiber
7
9
filesystem
8
10
iostreams
11
13
system
12
14
thread
13
15
)
14
- if (FORCE_BUNDLED_BOOST)
16
+ if (FORCE_BUNDLED_BOOST OR CLANG_FORCE_LIBCPP )
15
17
set (Boost_FOUND false )
16
18
else ()
17
19
find_package (Boost 1.69.0 COMPONENTS ${BOOST_COMPONENTS} )
Original file line number Diff line number Diff line change 1
- include (ExternalProject)
1
+ include (ExternalProject)
2
2
include (HPHPFunctions)
3
3
# We usually use SHA512, but given the SHA256 is on the boost.org download
4
4
# page, use that for transparency/ease of confirmation.
5
5
SET_HHVM_THIRD_PARTY_SOURCE_ARGS(
6
6
BOOST_DOWNLOAD_ARGS
7
7
SOURCE_URL
8
- "https://boostorg.jfrog .io/artifactory/main/ release/1.73 .0/source/boost_1_73_0 .tar.bz2 "
8
+ "https://archives.boost .io/release/1.83 .0/source/boost_1_83_0 .tar.gz "
9
9
SOURCE_HASH
10
- "SHA256=4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402 "
10
+ "SHA256=c0685b68dd44cc46574cce86c4e17c0f611b15e195be9848dfd0769a0a207628 "
11
11
)
12
12
set (
13
13
COMMON_ARGS
14
14
--prefix =<INSTALL_DIR>
15
15
--libdir=<INSTALL_DIR>/lib
16
16
)
17
+
17
18
set (
18
19
B2_ARGS
19
20
${COMMON_ARGS}
22
23
variant=release
23
24
threading=multi
24
25
runtime-link=static
25
- cxxflags=-std=gnu++14
26
+ cxxstd= ${CMAKE_CXX_STANDARD}
26
27
)
27
28
29
+ if (CLANG_FORCE_LIBCPP)
30
+ list (APPEND B2_ARGS toolset=clang stdlib=libc++)
31
+ endif ()
32
+
28
33
string (REPLACE ";" "," BOOST_COMPONENTS_CSV "${BOOST_COMPONENTS} " )
29
34
# We pass --with-libraires to bootstrap.sh, but that does not consistently
30
35
# affect b2
@@ -36,12 +41,11 @@ if (APPLE)
36
41
set (BOOST_CXX_FLAGS "-isysroot${CMAKE_OSX_SYSROOT} " )
37
42
endif ()
38
43
39
- ExternalProject_Add(
44
+ ExternalProject_Add(
40
45
bundled_boost
41
46
${BOOST_DOWNLOAD_ARGS}
42
- PATCH_COMMAND
43
- cd tools/build && patch -p1 < "${CMAKE_CURRENT_SOURCE_DIR} /b3a59d265929a213f02a451bb6-macos-coalesce-template.patch"
44
47
CONFIGURE_COMMAND
48
+ ${CMAKE_COMMAND} -E env
45
49
CXX=${CMAKE_CXX_COMPILER}
46
50
CXXFLAGS=${BOOST_CXX_FLAGS}
47
51
NO_CXX11_CHECK=true # we have c++17 (at least), and the check ignores CXXFLAGS, including `-isysroot` on macos
You can’t perform that action at this time.
0 commit comments