Issue #15425 has been updated by vo.x (Vit Ondruch).


> So maybe respecting --with-ruby-version in the header file name (or removing the version fragment) is the only thing we need to discuss/implement here?

That would be good start. The version there is probably useless.

This is the configuration I used:

~~~
$ ./configure --with-ruby-version='foo'
~~~

And this is the result:

~~~
$ cd /usr/local/include/
$ tree
.
ижибиб ruby-foo
    изибиб ruby
    ив изибиб assert.h
    ив изибиб backward
    ив ив изибиб classext.h
    ив ив изибиб cxxanyargs.hpp
    ив ив изибиб rubyio.h
    ив ив изибиб rubysig.h
    ив ив изибиб st.h
    ив ив ижибиб util.h
    ив изибиб backward.h
    ив изибиб debug.h
    ив изибиб defines.h
    ив изибиб digest.h
    ив изибиб encoding.h
    ив изибиб intern.h
    ив изибиб io.h
    ив изибиб missing.h
    ив изибиб onigmo.h
    ив изибиб oniguruma.h
    ив изибиб regex.h
    ив изибиб re.h
    ив изибиб ruby.h
    ив изибиб st.h
    ив изибиб subst.h
    ив изибиб thread.h
    ив изибиб thread_native.h
    ив изибиб util.h
    ив изибиб version.h
    ив ижибиб vm.h
    изибиб ruby-
    ив ижибиб x86_64-linux
    изибиб ruby.h
    ижибиб x86_64-linux
        изибиб rb_mjit_min_header-2.7.0.h
        ижибиб ruby
            ижибиб config.h

7 directories, 30 files
~~~

----------------------------------------
Bug #15425: Store MJIT header into Ruby versioned directory.
https://bugs.ruby-lang.org/issues/15425#change-83090

* Author: vo.x (Vit Ondruch)
* Status: Open
* Priority: Normal
* Assignee: k0kubun (Takashi Kokubun)
* Target version: 
* ruby -v: ruby 2.6.0rc2 (2018-12-15 trunk 66408) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
This is a followup of #15391 which fixes JIT to respect the configuration options. However, I still wonder, why the file is versioned and why it is not stored in the versioned directory alongside all other internal Ruby headers. I believe, that while it now respects the header configuration flags, it still does not respect options such as "--with-ruby-version"



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>