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 /win32 | |
parent | 3b6bb3deef374b329bca84bb0d25f64924399df6 (diff) |
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 'win32')
-rw-r--r-- | win32/Makefile.sub | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index daf24a9855..b707500f32 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -1248,8 +1248,30 @@ mjit_config.h: #ifndef RUBY_MJIT_CONFIG_H #define RUBY_MJIT_CONFIG_H 1 <<KEEP - @(set sep=#define MJIT_CC ) & \ + @ + @(set sep=#define MJIT_CC_COMMON ) & \ for %I in ($(CC)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@ - @echo /* MJIT_CC */>> $@ + @echo /* MJIT_CC_COMMON */>> $@ + @ + @(set sep=#define MJIT_CFLAGS ) & \ + for %I in ($(RUNTIMEFLAG) $(ARCH_FLAG)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@ + @echo /* MJIT_CFLAGS */>> $@ + @ + @(set sep=#define MJIT_OPTFLAGS ) & \ + for %I in ($(OPTFLAGS)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@ + @echo /* MJIT_OPTFLAGS */>> $@ + @ + @(set sep=#define MJIT_DEBUGFLAGS ) & \ + for %I in ($(DEBUGFLAGS)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@ + @echo /* MJIT_DEBUGFLAGS */>> $@ + @ + @(set sep=#define MJIT_LDSHARED ) & \ + for %I in ($(LDSHARED)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@ + @echo /* MJIT_LDSHARED */>> $@ + @ + @(set sep=#define MJIT_DLDFLAGS ) & \ + for %I in ($(DLDFLAGS)) do @(call echo.%%sep%%"%%~I" \& set sep= ,) >> $@ + @echo /* MJIT_DLDFLAGS */>> $@ + @ @echo #endif /* RUBY_MJIT_CONFIG_H */>> $@ @$(Q:@=: :) type $@ |