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

[WIP] Skip building on TruffleRuby #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andrykonchin
Copy link
Owner

No description provided.

LIBFFI_CLEAN = libffi
MK
else
File.write('Makefile', dummy_makefile("").join)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a ton of logic above we don't want to do.

So check very early the RUBY_ENGINE, just before require 'mkmf' and if no "ruby" then do this + return

require 'fiddle.so'
else
$LOAD_PATH.delete(__dir__)
require 'fiddle' # load from stdlib
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to return after this to skip the logic below

@andrykonchin andrykonchin force-pushed the ak/skip-compiling-on-truffleruby branch 6 times, most recently from 2e2da6d to bbd2898 Compare September 20, 2024 10:09
@eregon eregon force-pushed the ak/skip-compiling-on-truffleruby branch from 2ff4d4c to 3f6ac2b Compare September 26, 2024 12:44
* This is necessary to run Fiddle tests on non-CRuby.
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