Update Boost via our own rule instead of managing our own fork (#6238)

This commit is contained in:
mehrdadn
2019-11-22 16:10:47 -08:00
committed by Philipp Moritz
parent ae5abc48a9
commit 94d37eee28
2 changed files with 57 additions and 10 deletions
+19 -10
View File
@@ -84,13 +84,6 @@ def ray_deps_setup():
sha256 = "1e05a4791cc3470d3ecf7edb556f796b1d340359f1c4d293f175d4d0946cf84c",
)
github_repository(
name = "bazel_skylib",
tag = "0.6.0",
remote = "https://github.com/bazelbuild/bazel-skylib",
sha256 = "54ee22e5b9f0dd2b42eb8a6c1878dee592cfe8eb33223a7dbbc583a383f6ee1a",
)
github_repository(
name = "com_github_checkstyle_java",
commit = "ef367030d1433877a3360bbfceca18a5d0791bdd",
@@ -98,11 +91,27 @@ def ray_deps_setup():
sha256 = "2fc33ec804011a03106e76ae77d7f1b09091b0f830f8e2a0408f079a032ed716",
)
http_archive(
# This rule is used by @com_github_nelhage_rules_boost and
# declaring it here allows us to avoid patching the latter.
name = "boost",
build_file = "@com_github_nelhage_rules_boost//:BUILD.boost",
sha256 = "da3411ea45622579d419bfda66f45cd0f8c32a181d84adfa936f5688388995cf",
strip_prefix = "boost_1_68_0",
url = "https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz",
patches = [
# Backport Clang-Cl patch on Boost 1.69 to Boost <= 1.68:
# https://lists.boost.org/Archives/boost/2018/09/243420.php
"//thirdparty/patches:boost-type_traits-trivial_move.patch",
],
)
github_repository(
name = "com_github_nelhage_rules_boost",
commit = "5171b9724fbb39c5fdad37b9ca9b544e8858d8ac",
remote = "https://github.com/ray-project/rules_boost",
sha256 = "14fa5cb327a3df811aa8713bbb7c5a63a89286868e7ec874c4a335829bf9c018",
# If you update the Boost version, remember to update the 'boost' rule.
commit = "df908358c605a7d5b8bbacde07afbaede5ac12cf",
remote = "https://github.com/nelhage/rules_boost",
sha256 = "3775c5ab217e0c9cc380f56e243a4d75fe6fee8eaee1447899eaa04c5d582cf1",
)
github_repository(
+38
View File
@@ -0,0 +1,38 @@
From ad326841ecca3e1a31102d5ddaf4e82f55a13742 Mon Sep 17 00:00:00 2001
From: jzmaddock <john@johnmaddock.co.uk>
Date: Fri, 3 Aug 2018 18:31:46 +0100
Subject: [PATCH] Correct spelling of "__clang__" so that the headers compile
on clang/windows.
---
boost/type_traits/has_trivial_move_assign.hpp | 2 +-
boost/type_traits/has_trivial_move_constructor.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git boost/type_traits/has_trivial_move_assign.hpp boost/type_traits/has_trivial_move_assign.hpp
index 6d954ab..7b39269 100644
--- boost/type_traits/has_trivial_move_assign.hpp
+++ boost/type_traits/has_trivial_move_assign.hpp
@@ -24,7 +24,7 @@
#endif
#endif
-#if defined(__GNUC__) || defined(__clang)
+#if defined(__GNUC__) || defined(__clang__)
#include <boost/type_traits/is_assignable.hpp>
#include <boost/type_traits/is_volatile.hpp>
#endif
diff --git boost/type_traits/has_trivial_move_constructor.hpp boost/type_traits/has_trivial_move_constructor.hpp
index 5784f4b..2ecfc36 100644
--- boost/type_traits/has_trivial_move_constructor.hpp
+++ boost/type_traits/has_trivial_move_constructor.hpp
@@ -22,7 +22,7 @@
#include <boost/type_traits/is_volatile.hpp>
#endif
-#if defined(__GNUC__) || defined(__clang)
+#if defined(__GNUC__) || defined(__clang__)
#include <boost/type_traits/is_constructible.hpp>
#include <boost/type_traits/is_volatile.hpp>
#endif
--