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 Jan 29, 2025
1 parent 7584b08 commit 7615691
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
26 changes: 12 additions & 14 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -918,20 +918,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_mdbook_linux:
platform: ubuntu2004
name: Extensions MdBook
Expand Down
3 changes: 1 addition & 2 deletions .bcr/extensions/bindgen/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ bcr_test_module:
platform:
- "macos_arm64"
- "ubuntu2004"
# # TODO: https://github.com/bazelbuild/rules_rust/issues/2009
# - "windows"
- "windows"
bazel: ["7.x"]
tasks:
run_tests:
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,
),
"_process_wrapper": attr.label(
Expand Down

0 comments on commit 7615691

Please sign in to comment.