diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-10 06:22:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-10 06:22:38 +0000 |
commit | f6ca5edf3e3968a867faf82d763ffca45cf4483d (patch) | |
tree | bc02d60dab7bb45ffffb888eff516ff53eb435ef /Makefile.in | |
parent | 61f26a1bf90277ee91b90ddecfbf64e94bc14b98 (diff) |
mjit_config.h
* Makefie.in, win32/Makefile.sub: make mjit_config.h from
configured variables, including necessary options, e.g., `-m32`
for 32bit binary on 64bit platform.
* mjit.c: always use configured CC command. as config.h depends
on the compiler, different compilers cannot work.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 347b142499..947db0463b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -534,3 +534,14 @@ loadpath: verconf.h un-runnable: $(ECHO) cannot make runnable, configure with --enable-load-relative. $(Q) exit 1 + +mjit_config.h: + $(ECHO) making $@ + @{ \ + echo '#ifndef RUBY_MJIT_CONFIG_H'; \ + echo '#define RUBY_MJIT_CONFIG_H 1'; \ + set x $(CC) && shift && echo '#define MJIT_CC "'$$1'"' \\; \ + shift && for w do echo ' , "'$$w'"' \\; done; \ + echo ' /* MJIT_CC */'; \ + echo '#endif /* RUBY_MJIT_CONFIG_H */'; \ + } > $@ |