ruby-changes:57458
From: Takashi <ko1@a...>
Date: Sun, 1 Sep 2019 16:32:38 +0900 (JST)
Subject: [ruby-changes:57458] Takashi Kokubun: cda5745c1b (master): Automatically detect missing symbols
https://git.ruby-lang.org/ruby.git/commit/?id=cda5745c1b From cda5745c1bacdb3be8384d21ee0dd70a9d95af5b Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 1 Sep 2019 16:31:09 +0900 Subject: Automatically detect missing symbols which are usually optimized away by -O3. This CI can detect missing exports like ea84a680755b5a7fa700618cbe78e3b2fc7be01d which was needed for 761346a9604ca2c79777d1d67fb5dcc3c30dbf69. diff --git a/.travis.yml b/.travis.yml index 6a90720..b7f1add 100644 --- a/.travis.yml +++ b/.travis.yml @@ -143,6 +143,8 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L143 name: x86_64-linux os: linux <<: *gcc-8 + env: + - TEST_MJIT_SYMBOLS=1 # detect exports missing for MJIT - &jemalloc name: --with-jemalloc diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index c1624cc..acda166 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -29,6 +29,7 @@ module JITSupport https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L29 ] args << '--jit-wait' if wait args << '--jit-save-temps' if save_temps + args << '--jit-debug' if ENV['TEST_MJIT_SYMBOLS'] == '1' args << '-e' << script base_env = { 'MJIT_SEARCH_BUILD_DIR' => 'true' } # workaround to skip requiring `make install` for `make test-all` if preloadenv = RbConfig::CONFIG['PRELOADENV'] and !preloadenv.empty? -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/