customize cc_librarary #18733
Unanswered
maneeshsinghxavo
asked this question in
Q&A
Replies: 2 comments
-
Sorry not exactly clear what you want to do, would you mind explaining it in a bit more detail and breaking down the problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
as per example
https://github.com/bazelbuild/examples/tree/main/configurations/cc_binary_selectable_copts
I would like to customize the cc_libarry
I wrote sample implementation
sample output
ERROR: /home/manesingh/work/DAI/minerva/examples-1/cpp-tutorial/stage3/main/BUILD:15:10: in deps attribute of cc_binary rule //main:hello-world_native_binary: library_transition_rule rule '//main:hello-greet' is misplaced here (expected cc_library, objc_library, cc_proto_library or cc_import) and '//main:hello-greet' does not have mandatory providers: 'CcInfo'. Since this rule was created by the macro 'cc_binary', the error might have been caused by the macro implementation
ERROR: /home/manesingh/work/DAI/minerva/examples-1/cpp-tutorial/stage3/main/BUILD:15:10: in deps attribute of cc_binary rule //main:hello-world_native_binary: library_transition_rule rule '//lib:hello-time' is misplaced here (expected cc_library, objc_library, cc_proto_library or cc_import) and '//lib:hello-time' does not have mandatory providers: 'CcInfo'. Since this rule was created by the macro 'cc_binary', the error might have been caused by the macro implementation
ERROR: /home/manesingh/work/DAI/minerva/examples-1/cpp-tutorial/stage3/main/BUILD:15:10: in cc_binary rule //main:hello-world_native_binary: target '//lib:hello-time' is not visible from target '//main:hello-world_native_binary'. Check the visibility declaration of the former target if you think the dependency is legitimate
ERROR: /home/manesingh/work/DAI/minerva/examples-1/cpp-tutorial/stage3/main/BUILD:15:10: Analysis of target '//main:hello-world_native_binary' failed
ERROR: Analysis of target '//main:hello-world' failed; build aborted:
INFO: Elapsed time: 0.215s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (38 packages loaded, 165 targets configured)
Could someone help to figure this out?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions