aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-10 06:22:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-10 06:22:38 +0000
commit614a894bad987a73dbbd6f8bab9b007bcafc6bfa (patch)
treebc02d60dab7bb45ffffb888eff516ff53eb435ef /Makefile.in
parent9c984c69892432872335bb94447eb48413cba4ce (diff)
downloadruby-614a894bad987a73dbbd6f8bab9b007bcafc6bfa.tar.gz
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.in11
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 */'; \
+ } > $@