Skip to content

Commit

Permalink
Remove unused cc_libraries named "stl".
Browse files Browse the repository at this point in the history
Closes #7278.

PiperOrigin-RevId: 231400092
  • Loading branch information
katre authored and Copybara-Service committed Jan 29, 2019
1 parent 6e7ea1c commit 4e6080a
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public final class BazelMockCcSupport extends MockCcSupport {
new Predicate<String>() {
@Override
public boolean apply(String label) {
return !label.startsWith("@blaze_tools//tools/cpp/stl")
&& !label.startsWith("@blaze_tools//tools/cpp/link_dynamic_library");
return !label.startsWith("@blaze_tools//tools/cpp/link_dynamic_library");
}
};

Expand Down Expand Up @@ -77,7 +76,6 @@ public void setup(MockToolsConfig config) throws IOException {
config.create(
"/bazel_tools_workspace/tools/cpp/BUILD",
"package(default_visibility=['//visibility:public'])",
"cc_library(name = 'stl')",
"toolchain_type(name = 'toolchain_type')",
"cc_library(name = 'malloc')",
"cc_toolchain_suite(",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,9 @@ public static void processSkyframeExecutorForTesting(SkyframeExecutor skyframeEx
public static final BuilderFactoryForTesting PACKAGE_FACTORY_BUILDER_FACTORY_FOR_TESTING =
PackageFactoryBuilderFactoryForBazelUnitTests.INSTANCE;

/**
* Partial query to filter out implicit dependencies of C/C++ rules.
*/
/** Partial query to filter out implicit dependencies of C/C++ rules. */
public static final String CC_DEPENDENCY_CORRECTION =
" - deps(" + TOOLS_REPOSITORY + "//tools/cpp:stl)"
+ " - deps(" + TOOLS_REPOSITORY + CROSSTOOL_LABEL + ")";
" - deps(" + TOOLS_REPOSITORY + CROSSTOOL_LABEL + ")";

public static final String PLATFORM_LABEL =
"@bazel_tools//platforms:host_platform + @bazel_tools//platforms:target_platform";
Expand Down
4 changes: 0 additions & 4 deletions src/test/shell/bazel/cc_flags_supplier_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ cc_library(
name = "malloc",
)
cc_library(
name = "stl",
)
filegroup(
name = "empty",
srcs = [],
Expand Down
4 changes: 0 additions & 4 deletions tools/cpp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "grep-includes",
srcs = ["grep-includes.sh"],
Expand Down
4 changes: 0 additions & 4 deletions tools/cpp/BUILD.empty
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "empty",
srcs = [],
Expand Down
4 changes: 0 additions & 4 deletions tools/cpp/BUILD.static.freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "empty",
srcs = [],
Expand Down
4 changes: 0 additions & 4 deletions tools/cpp/BUILD.static.windows
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "empty",
srcs = [],
Expand Down
4 changes: 0 additions & 4 deletions tools/cpp/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "empty",
srcs = [],
Expand Down
4 changes: 0 additions & 4 deletions tools/osx/crosstool/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ cc_library(
name = "malloc",
)

cc_library(
name = "stl",
)

filegroup(
name = "empty",
srcs = [],
Expand Down

0 comments on commit 4e6080a

Please sign in to comment.