summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/argf/file_spec.rb
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2024-06-22 05:04:49 +0000
committerYuta Saito <kateinoigakukun@gmail.com>2024-06-22 15:12:00 +0900
commit73b7eebf07a5045a47bff72a7fc70e5e6aee7b94 (patch)
tree62336984a0927cccfca45c7d9b852e9ff1f350fa /spec/rubyspec/core/argf/file_spec.rb
parentcab0d03037d8bc2fce19d1ba2d709f1436890f01 (diff)
build: fix crossruby build by handling empty `ac_abs_builddir`HEADmaster
`ac_abs_builddir` can be empty when the build is top-level (not subdirs, and Ruby is usually the case). In such case, the MINIRUBY is expanded to `$RUBY -I -r'$(arch)-fake'`, which interprets `-r$(arch)-fake` as an argument to `-I` option. This led to: - Not loading the fake config file - Then not setting `CROSS_COMPILING` constant during extmk.rb execution - Then misusing cross-compiled `./miniruby` instead of baseruby to generate files used in exts. This commit fixes the issue by handling the empty `ac_abs_builddir` case properly.
Diffstat (limited to 'spec/rubyspec/core/argf/file_spec.rb')
0 files changed, 0 insertions, 0 deletions