From 614a894bad987a73dbbd6f8bab9b007bcafc6bfa Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 10 Feb 2018 06:22:38 +0000 Subject: 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 --- Makefile.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.in') 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 */'; \ + } > $@ -- cgit v1.2.3