diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-11 04:54:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-11 04:54:15 +0000 |
commit | 8f66876988892371efbc8278b6221f9a86e4657a (patch) | |
tree | 7275637f58001680f3e7fe93e92f97958353b335 /Makefile.in | |
parent | 3b6bb3deef374b329bca84bb0d25f64924399df6 (diff) | |
download | bundler-8f66876988892371efbc8278b6221f9a86e4657a.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.in | 29 |
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 */'; \ } > $@ |