Skip to content

Commit

Permalink
test: move to new native_image_shared_library rule
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <sam@elide.ventures>
  • Loading branch information
sgammon committed Jan 14, 2024
1 parent 2ed1f4f commit 1e9c24b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/integration_tests/shared-lib/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions example/integration_tests/shared-lib/sample/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
load(
"@rules_graalvm//graalvm:defs.bzl",
"native_image",
"native_image_shared_library",
)

java_library(
name = "java",
srcs = ["Main.java"],
)

native_image(
native_image_shared_library(
name = "lib-native",
deps = [":java"],
shared_library = True,
)

alias(
Expand Down
2 changes: 2 additions & 0 deletions graalvm/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
load(
"//graalvm/nativeimage:rules.bzl",
_native_image = "native_image",
_native_image_shared_library = "native_image_shared_library",
)

## Exports
native_image = _native_image
native_image_shared_library = _native_image_shared_library

0 comments on commit 1e9c24b

Please sign in to comment.