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

Advice - JRuby file list ? #175

Open
MSP-Greg opened this issue Sep 12, 2020 · 1 comment
Open

Advice - JRuby file list ? #175

MSP-Greg opened this issue Sep 12, 2020 · 1 comment

Comments

@MSP-Greg
Copy link
Contributor

With MRI Ruby, one can select source files in extconf.rb. With JRuby, that isn't available.

The issue is being able to compile with and without OpenSSL support. To do so requires a different set of source files.

As a solution, I defined ::Rake::JavaExtensionTask#source_files in the Rakefile, and returned a correct FileList.

Question:

It's kind of hacky, but it's short, and it works. There are at most four files, so the list is manageable. Is there a better way?

@kou
Copy link
Member

kou commented Dec 23, 2020

Could you show how to reproduce this?

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

No branches or pull requests

2 participants