access linkopts in rule #18720
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
moved to next discussion |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have declared a simple
cc_binary(
name = "hello_world",
srcs = ["hello_world.cpp"],
linkopts = [
"-nostdlib",
],
)
I would like to access linkopts so that I can show some error message .
I have also implemented toolchain
def _impl(ctx):
but I do not see nostdlib in list of flags.
How do I access linkopts flags in bzl file?
Appreciate if someone could help me.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions