-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
504e1a2
to
0d6b27c
Compare
ext/fiddle/extconf.rb
Outdated
LIBFFI_CLEAN = libffi | ||
MK | ||
else | ||
File.write('Makefile', dummy_makefile("").join) |
There was a problem hiding this comment.
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
0d6b27c
to
1d2a34b
Compare
require 'fiddle.so' | ||
else | ||
$LOAD_PATH.delete(__dir__) | ||
require 'fiddle' # load from stdlib |
There was a problem hiding this comment.
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
2e2da6d
to
bbd2898
Compare
bbd2898
to
b7bdab5
Compare
b7bdab5
to
3f6ac2b
Compare
2ff4d4c
to
3f6ac2b
Compare
* This is necessary to run Fiddle tests on non-CRuby.
No description provided.