Skip to content

Commit 8a13173

Browse files
author
Vinh Tran
committed
Revert "Fix bazelbuild#2406: use codegen option link-args to forward user_link_flags in bindgen. (bazelbuild#2407)"
This reverts commit 90e4505.
1 parent caa3959 commit 8a13173

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bindgen/private/bindgen.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ def _generate_cc_link_build_info(ctx, cc_lib):
124124
linker_search_paths.append(lib.pic_static_library.dirname)
125125
compile_data.append(lib.pic_static_library)
126126

127-
if linker_input.user_link_flags:
128-
linker_flags.append("-C")
129-
linker_flags.append("link-args={}".format(" ".join(linker_input.user_link_flags)))
127+
linker_flags.extend(linker_input.user_link_flags)
130128

131129
if not compile_data:
132130
fail("No static libraries found in {}".format(

0 commit comments

Comments
 (0)