1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Automatically detect missing symbols

which are usually optimized away by -O3.

This CI can detect missing exports like
ea84a68075 which was needed for
761346a960.
This commit is contained in:
Takashi Kokubun 2019-09-01 16:31:09 +09:00
parent ea84a68075
commit cda5745c1b
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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?