File tree 7 files changed +4
-56
lines changed
java/com/google/devtools/build/lib/rules/cpp
starlark/tests/builtins_bzl
cc/cc_shared_library/test_cc_shared_library
7 files changed +4
-56
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ public AspectParameters apply(Rule rule) {
50
50
: null ;
51
51
}
52
52
};
53
- private static final ImmutableList <String > CC_DEPS_ATTRIBUTES =
54
- ImmutableList .of ("deps" , "implementation_deps" );
55
53
56
54
@ Override
57
55
public AspectDefinition getDefinition (AspectParameters aspectParameters ) {
@@ -69,12 +67,9 @@ public ConfiguredAspect create(
69
67
RepositoryName toolsRepository )
70
68
throws ActionConflictException , InterruptedException {
71
69
ImmutableList .Builder <GraphNodeInfo > children = ImmutableList .builder ();
72
- for (String depsAttribute : CC_DEPS_ATTRIBUTES ) {
73
- if (ruleContext .attributes ().has (depsAttribute )) {
74
- children .addAll (
75
- AnalysisUtils .getProviders (
76
- ruleContext .getPrerequisites (depsAttribute ), GraphNodeInfo .class ));
77
- }
70
+ if (ruleContext .attributes ().has ("deps" )) {
71
+ children .addAll (
72
+ AnalysisUtils .getProviders (ruleContext .getPrerequisites ("deps" ), GraphNodeInfo .class ));
78
73
}
79
74
return new ConfiguredAspect .Builder (ruleContext )
80
75
.addProvider (
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ cc_shared_library(
90
90
"a_suffix",
91
91
],
92
92
static_deps = [
93
- "//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:implementation_dep",
94
93
"//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:qux",
95
94
"//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:qux2",
96
95
"//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:prebuilt",
@@ -111,12 +110,6 @@ cc_library(
111
110
hdrs = ["preloaded_dep.h"],
112
111
)
113
112
114
- cc_library(
115
- name = "implementation_dep",
116
- srcs = ["implementation_dep.cc"],
117
- hdrs = ["implementation_dep.h"],
118
- )
119
-
120
113
cc_library(
121
114
name = "foo",
122
115
srcs = [
@@ -131,7 +124,6 @@ cc_library(
131
124
"//src/conditions:linux": ["IS_LINUX"],
132
125
"//conditions:default": [],
133
126
}),
134
- implementation_deps = ["implementation_dep"],
135
127
deps = [
136
128
"preloaded_dep",
137
129
"bar",
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ function test_shared_library_symbols() {
48
48
check_symbol_absent " $symbols " " _Z3quxv"
49
49
check_symbol_absent " $symbols " " _Z4bar3v"
50
50
check_symbol_absent " $symbols " " _Z4bar4v"
51
- check_symbol_absent " $symbols " " _Z18implementation_depv"
52
51
}
53
52
54
53
function test_shared_library_user_link_flags() {
Original file line number Diff line number Diff line change 15
15
#include " src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/baz.h"
16
16
#include " src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/direct_so_file_cc_lib.h"
17
17
#include " src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/direct_so_file_cc_lib2.h"
18
- #include " src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/implementation_dep.h"
19
18
#include " src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/preloaded_dep.h"
20
19
#include " src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library/qux.h"
21
20
22
21
int foo () {
23
22
bar ();
24
23
baz ();
25
- implementation_dep ();
26
24
qux ();
27
25
#ifdef IS_LINUX
28
26
direct_so_file_cc_lib ();
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 73
73
--experimental_link_static_libraries_once \
74
74
--experimental_enable_target_export_check --experimental_cc_shared_library \
75
75
--experimental_builtins_injection_override=+cc_binary \
76
- --experimental_cc_implementation_deps \
77
76
//src/main/starlark/tests/builtins_bzl/cc/... || fail " expected success"
78
77
}
79
78
80
- run_suite " cc_* built starlark test"
79
+ run_suite " cc_* built starlark test"
You can’t perform that action at this time.
0 commit comments