Skip to content

Instantly share code, notes, and snippets.

@shirosaki
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shirosaki/11082395 to your computer and use it in GitHub Desktop.
Save shirosaki/11082395 to your computer and use it in GitHub Desktop.
test-all result 2.1.2p80

64bit

$ make test-all TESTS="-qv -j6"

Finished tests in 413.454079s, 34.8624 tests/s, 5880.8804 assertions/s.

  1) Failure:
TestException#test_machine_stackoverflow [c:/Users/hiroshi/work/ruby/test/ruby/t
est_exception.rb:482]:
pid 5464 killed by SIGSEGV (signal 11)

14414 tests, 2431474 assertions, 1 failures, 0 errors, 290 skips

ruby -v: ruby 2.1.2p80 (2014-03-01 revision 45231) [x64-mingw32]
make: *** [yes-test-all] Error 1

32bit

Test dl separately because test-all pralell does not complete with dl tests. Patch to enable SSE2 is applied.

$ make test-all TESTS="-qv -j6 -x dl"

Finished tests in 389.157462s, 36.4865 tests/s, 6252.7415 assertions/s.

  1) Failure:
TestException#test_machine_stackoverflow [c:/Users/hiroshi/work/ruby/test/ruby/t
est_exception.rb:482]:
pid 1248 killed by SIGSEGV (signal 11)

14199 tests, 2433301 assertions, 1 failures, 0 errors, 282 skips

ruby -v: ruby 2.1.2p80 (2014-03-01 revision 45231) [i386-mingw32]
make: *** [yes-test-all] Error 1


$ make test-all TESTS="-qv dl"

Finished tests in 0.281258s, 458.6536 tests/s, 1720.8399 assertions/s.

129 tests, 484 assertions, 0 failures, 0 errors, 2 skips

ruby -v: ruby 2.1.2p80 (2014-03-01 revision 45231) [i386-mingw32]
diff --git a/config/ruby_installer.rb b/config/ruby_installer.rb
index 5e00c5e..cec3f63 100755
--- a/config/ruby_installer.rb
+++ b/config/ruby_installer.rb
@@ -127,6 +127,7 @@ module RubyInstaller
:configure_options => [
'--enable-shared',
'--disable-install-doc',
+ "optflags='-O3 -msse2 -mfpmath=sse -mstackrealign'",
'debugflags=-g',
"CPPFLAGS='-DFD_SETSIZE=2048'"
],
diff --git a/configure.in b/configure.in
index 17ed3ed..cc684b5 100644
--- a/configure.in
+++ b/configure.in
@@ -860,7 +860,7 @@ if test "$GCC" = yes; then
[*-darwin*], [
# doesn't seem necessary on Mac OS X
],
- [[i[4-6]86*]], [
+ [[i[4-6]86*|i386*mingw*]], [
RUBY_TRY_CFLAGS(-msse2 -mfpmath=sse, [
RUBY_APPEND_OPTION(XCFLAGS, -msse2 -mfpmath=sse)
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment