diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-01 16:31:09 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-01 16:31:15 +0900 |
commit | cda5745c1bacdb3be8384d21ee0dd70a9d95af5b (patch) | |
tree | 877aea4288cf3dce2fe768cbc20540d9de80c424 | |
parent | ea84a680755b5a7fa700618cbe78e3b2fc7be01d (diff) |
Automatically detect missing symbols
which are usually optimized away by -O3.
This CI can detect missing exports like
ea84a680755b5a7fa700618cbe78e3b2fc7be01d which was needed for
761346a9604ca2c79777d1d67fb5dcc3c30dbf69.
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | test/lib/jit_support.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 6a90720184..b7f1addf29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -143,6 +143,8 @@ env: 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 c1624cc3b2..acda166eb2 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -29,6 +29,7 @@ module JITSupport ] 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? |