We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
link-args
user_link_flags
1 parent 012af3b commit 90e4505Copy full SHA for 90e4505
bindgen/private/bindgen.bzl
@@ -124,7 +124,9 @@ def _generate_cc_link_build_info(ctx, cc_lib):
124
linker_search_paths.append(lib.pic_static_library.dirname)
125
compile_data.append(lib.pic_static_library)
126
127
- linker_flags.extend(linker_input.user_link_flags)
+ if linker_input.user_link_flags:
128
+ linker_flags.append("-C")
129
+ linker_flags.append("link-args={}".format(" ".join(linker_input.user_link_flags)))
130
131
if not compile_data:
132
fail("No static libraries found in {}".format(
0 commit comments