Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose Ruby engine configuration #185

Merged
merged 1 commit into from
Dec 24, 2024
Merged

feat: expose Ruby engine configuration #185

merged 1 commit into from
Dec 24, 2024

Conversation

p0deje
Copy link
Member

@p0deje p0deje commented Dec 23, 2024

Exposes Ruby engine targets to select() depending on installed Ruby interpreter:

BUILD:

rb_library(
    name = "my_lib",
    srcs = ["my_lib.rb"],
    deps = select({
        "@ruby//engine:jruby": [":my_jruby_lib"],
        "@ruby//engine:truffleruby": ["//:my_truffleruby_lib"],
        "@ruby//engine:ruby": ["//:my__lib"],
        "//conditions:default": [],
    }),
)

@p0deje p0deje merged commit f6cff64 into main Dec 24, 2024
42 checks passed
@p0deje p0deje deleted the rb-engine branch December 24, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants