aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/cpp
diff options
context:
space:
mode:
authorGravatar dbabkin <dbabkin@google.com>2018-06-28 06:39:03 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-28 06:40:13 -0700
commit1d3b6c144634b18b918c438ca042a16af8c901ff (patch)
tree4e87f9f41bfdf27812a9dc20c9f51b91ec3886ab /tools/cpp
parentc71157f9a826db25e2588a0147de76e97ff30eb2 (diff)
Add aliases for current_cc_host_toolchain, current_libc_top and filegroup
crosstool to agregate all its together. RELNOTES:none PiperOrigin-RevId: 202470052
Diffstat (limited to 'tools/cpp')
-rw-r--r--tools/cpp/BUILD5
-rw-r--r--tools/cpp/alias_rules.bzl21
2 files changed, 4 insertions, 22 deletions
diff --git a/tools/cpp/BUILD b/tools/cpp/BUILD
index e6319b2d32..16225c40a5 100644
--- a/tools/cpp/BUILD
+++ b/tools/cpp/BUILD
@@ -47,9 +47,12 @@ constraint_value(
constraint_setting = ":cc_compiler",
)
-# TODO(lberki): Remove this once cc_toolchain_alias is in a Bazel release
cc_toolchain_alias(name = "current_cc_toolchain")
+cc_host_toolchain_alias(name = "current_cc_host_toolchain")
+
+cc_libc_top_alias(name = "current_libc_top")
+
cc_library(
name = "malloc",
)
diff --git a/tools/cpp/alias_rules.bzl b/tools/cpp/alias_rules.bzl
deleted file mode 100644
index 2ab85d8882..0000000000
--- a/tools/cpp/alias_rules.bzl
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 2017 The Bazel Authors. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Skylark rules that stub out C++-related alias rules."""
-
-def cc_toolchain_alias(name):
- if hasattr(native, "cc_toolchain_alias"):
- native.cc_toolchain_alias(name = name)
- else:
- pass