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

[Truffle] Add -run parameter #4267

Closed
bjfish opened this issue Nov 7, 2016 · 2 comments
Closed

[Truffle] Add -run parameter #4267

bjfish opened this issue Nov 7, 2016 · 2 comments
Assignees
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented Nov 7, 2016

Example

../../../../../bin/jruby -X+T -run -e rm -- -f openssl.su
../../../../../bin/jruby -run -e rm -- -f openssl.su

Expected Behavior

$ ../../../../../bin/jruby -run -e rm -- -f openssl.su
# Removes file if it exists

Actual Behavior

../../../../../bin/jruby -X+T -run -e rm -- -f openssl.su
WARNING: This JVM does not have the Graal compiler. JRuby+Truffle's performance without it will be limited. See https://github.com/jruby/jruby/wiki/Truffle-FAQ#how-do-i-get-jrubytruffle
/Users/brandonfish/Documents/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require': cannot load such file -- un (LoadError)
	from /Users/brandonfish/Documents/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require'
	from -e:1:in `<main>'

Also should work using bin/jruby-truffle

Found using mkmf makefile

@bjfish bjfish added the truffle label Nov 7, 2016
@eregon
Copy link
Member

eregon commented Nov 7, 2016

Might be just the matter of putting stdlib's un.rb in our stdlib.

@bjfish bjfish self-assigned this Nov 7, 2016
@bjfish
Copy link
Contributor Author

bjfish commented Nov 7, 2016

I've added un here: 63af728 and had to stub Thread::Backtrace::Location#label to get this to work

@bjfish bjfish closed this as completed Nov 7, 2016
@enebo enebo modified the milestone: truffle-dev Nov 9, 2016
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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

3 participants