Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Get the Truffle specs running on Windows.
  • Loading branch information
nirvdrum committed Dec 31, 2014
1 parent 4710b5f commit 7e36e14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions spec/truffle/spec-wrapper.bat
@@ -0,0 +1,8 @@
@bin\jruby -X+T ^
-Xparser.warn.useless_use_of=false ^
-Xparser.warn.not_reached=false ^
-Xparser.warn.grouped_expressions=false ^
-Xparser.warn.shadowing_local=false ^
-Xparser.warn.regex_condition=false ^
-Xparser.warn.argument_prefix=false ^
-J-ea -J-Xmx2G %*
6 changes: 5 additions & 1 deletion spec/truffle/truffle.mspec
@@ -1,6 +1,10 @@
class MSpecScript

set :target, File.dirname(__FILE__) + '/spec-wrapper'
def self.windows?
ENV.key?('WINDIR') || ENV.key?('windir')
end

set :target, File.join(File.dirname(__FILE__), "spec-wrapper#{windows? ? '.bat' : ''}")

set :language, [
"spec/ruby/language"
Expand Down

0 comments on commit 7e36e14

Please sign in to comment.