Skip to content

Commit

Permalink
Update CROSSTOOL for Mac to support Bazel 0.12.0 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Apr 12, 2018
1 parent ec97e95 commit 5614d3c
Show file tree
Hide file tree
Showing 4 changed files with 358 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ for i in "$@"; do
LIBS="${BASH_REMATCH[1]} $LIBS"
elif [[ "$i" =~ ^-L(.*)$ ]]; then
LIB_DIRS="${BASH_REMATCH[1]} $LIB_DIRS"
elif [[ "$i" =~ ^-Wl,-rpath,\$ORIGIN/(.*)$ ]]; then
elif [[ "$i" =~ ^-Wl,-rpath,\@loader_path/(.*)$ ]]; then
RPATHS="${BASH_REMATCH[1]} ${RPATHS}"
elif [[ "$i" = "-o" ]]; then
# output is coming
Expand Down
2 changes: 1 addition & 1 deletion third_party/com_github_bazelbuild_bazel/vendor.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The files in this directory tree (other than this file) are derived from Bazel:

remote = "https://github.com/bazelbuild/bazel.git"
sha = "600ab49a98bcb6d96231174b44bd4ae335de4dbf"
sha = "f98a7a2fedb3e714cef1038dcb85f83731150246"

Please update this metadata when copying new versions from upstream.
6 changes: 3 additions & 3 deletions tools/cc_toolchain/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package(default_visibility = ["//visibility:public"])
cc_toolchain_suite(
name = "default-toolchain",
toolchains = {
"darwin|compiler": "cc_toolchain_apple",
"darwin_x86_64|compiler": "cc_toolchain_apple",
"k8|clang-4.0": "cc_toolchain_linux",
"k8|gcc-5": "cc_toolchain_linux",
"k8|gcc-6": "cc_toolchain_linux",
Expand Down Expand Up @@ -99,7 +99,7 @@ cc_toolchain(
name = "cc_toolchain_apple",
all_files = ":apple_toolchain_deps",
compiler_files = ":apple_toolchain_deps",
cpu = "darwin",
cpu = "darwin_x86_64",
dwp_files = ":apple_toolchain_deps",
dynamic_runtime_libs = [":empty"],
linker_files = ":apple_toolchain_deps",
Expand All @@ -118,7 +118,7 @@ config_setting(
name = "apple_debug",
values = {
"compilation_mode": "dbg",
"cpu": "darwin",
"cpu": "darwin_x86_64",
},
)

Expand Down
Loading

0 comments on commit 5614d3c

Please sign in to comment.