aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-11 04:54:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-11 04:54:15 +0000
commitdf2290e87213a14f4d6d4657f314d54558fdb5d0 (patch)
tree7275637f58001680f3e7fe93e92f97958353b335 /Makefile.in
parent6ccbbae55eaabc02463dc45d9916a32b93cbb423 (diff)
downloadruby-df2290e87213a14f4d6d4657f314d54558fdb5d0.tar.gz
mjit_config.h: more macros
* Makefie.in, win32/Makefile.sub: add more macros for compiler to mjit_config.h. * mjit.c: unification VC and GCC in progress. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in29
1 files changed, 26 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 4e495562e2..9f01868e79 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -541,8 +541,31 @@ mjit_config.h:
$(Q:@=:) set -x; \
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 */'; \
+ \
+ set x $(CC) && shift && echo '#define MJIT_CC_COMMON "'$$1'"' \\; \
+ shift && for w do echo ' , "'$$w'"' \\; done; \
+ echo ' /* MJIT_CC_COMMON */'; \
+ \
+ \
+ set x -w $(ARCH_FLAG) && shift && echo '#define MJIT_CFLAGS "'$$1'"' \\; \
+ shift && for w do echo ' , "'$$w'"' \\; done; \
+ echo ' /* MJIT_CFLAGS */'; \
+ \
+ set x $(optflags) && shift && echo '#define MJIT_OPTFLAGS "'$$1'"' \\; \
+ shift && for w do echo ' , "'$$w'"' \\; done; \
+ echo ' /* MJIT_OPTFLAGS */'; \
+ \
+ set x $(debugflags) && shift && echo '#define MJIT_DEBUGFLAGS "'$$1'"' \\; \
+ shift && for w do echo ' , "'$$w'"' \\; done; \
+ echo ' /* MJIT_DEBUGFLAGS */'; \
+ \
+ set x @LDSHARED@ && shift && echo '#define MJIT_LDSHARED "'$$1'"' \\; \
+ shift && for w do echo ' , "'$$w'"' \\; done; \
+ echo ' /* MJIT_LDSHARED */'; \
+ \
+ set x @DLDFLAGS@ && shift && echo '#define MJIT_DLDFLAGS "'$$1'"' \\; \
+ shift && for w do echo ' , "'$$w'"' \\; done; \
+ echo ' /* MJIT_DLDFLAGS */'; \
+ \
echo '#endif /* RUBY_MJIT_CONFIG_H */'; \
} > $@