Skip to content

Commit

Permalink
Enable bindgen tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Dec 11, 2024
1 parent c77ab04 commit fbe8610
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
26 changes: 12 additions & 14 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -909,20 +909,18 @@ tasks:
- "//..."
test_targets:
- "//..."
# # TODO: https://github.com/bazelbuild/rules_rust/issues/2009
# # The bindgen rules are currently broken on windows
# extensions_bindgen_windows:
# platform: windows
# name: Extensions Bindgen
# working_directory: extensions/bindgen
# build_flags: *aspects_flags
# test_flags: *aspects_flags
# build_targets:
# - "--"
# - "//..."
# test_targets:
# - "--"
# - "//..."
extensions_bindgen_windows:
platform: windows
name: Extensions Bindgen
working_directory: extensions/bindgen
build_flags: *aspects_flags
test_flags: *aspects_flags
build_targets:
- "--"
- "//..."
test_targets:
- "--"
- "//..."
extensions_prost_linux:
platform: ubuntu2004
name: Extensions Prost
Expand Down
7 changes: 5 additions & 2 deletions extensions/bindgen/private/bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _get_user_link_flags(cc_lib):
return linker_flags

def _generate_cc_link_build_info(ctx, cc_lib):
"""Produce the eqivilant cargo_build_script providers for use in linking the library.
"""Produce the equivalent cargo_build_script providers for use in linking the library.
Args:
ctx (ctx): The rule's context object
Expand Down Expand Up @@ -391,7 +391,10 @@ rust_bindgen = rule(
default = True,
),
"wrap_static_fns": attr.bool(
doc = "Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains).",
doc = (
"Whether to create a separate .c file for static functions. Requires nightly toolchain, " +
"and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains)."
),
default = False,
),
"_cc_toolchain": attr.label(
Expand Down

0 comments on commit fbe8610

Please sign in to comment.