mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makefile.in: define macro in one line
Having macro definition in multiple definitions makes compiler error output hard to read, like the commit message of r62367. Probably build failures will be fixed by r62370, but let me simplify the mjit_config.h content for future debugging. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d76179cefc
commit
71385538d2
1 changed files with 18 additions and 19 deletions
37
Makefile.in
37
Makefile.in
|
@ -542,30 +542,29 @@ mjit_config.h:
|
|||
echo '#ifndef RUBY_MJIT_CONFIG_H'; \
|
||||
echo '#define RUBY_MJIT_CONFIG_H 1'; \
|
||||
\
|
||||
set x $(CC) && shift && echo '#define MJIT_CC_COMMON' \\ && \
|
||||
for w do echo ' "'$$w'",' \\ ; done; \
|
||||
echo ' /* MJIT_CC_COMMON */'; \
|
||||
set x $(CC) && shift && echo -n '#define MJIT_CC_COMMON ' && \
|
||||
for w do echo -n '"'$$w'", '; done; \
|
||||
echo; \
|
||||
\
|
||||
set x -w $(ARCH_FLAG) && shift && echo '#define MJIT_CFLAGS' \\ && \
|
||||
for w do echo ' "'$$w'",' \\ ; done; \
|
||||
echo ' /* MJIT_CFLAGS */'; \
|
||||
set x -w $(ARCH_FLAG) && shift && echo -n '#define MJIT_CFLAGS ' && \
|
||||
for w do echo -n '"'$$w'", '; done; \
|
||||
echo; \
|
||||
\
|
||||
set x $(optflags) && shift && echo '#define MJIT_OPTFLAGS' \\ && \
|
||||
for w do echo ' "'$$w'",' \\ ; done; \
|
||||
echo ' /* MJIT_OPTFLAGS */'; \
|
||||
set x $(optflags) && shift && echo -n '#define MJIT_OPTFLAGS ' && \
|
||||
for w do echo -n '"'$$w'", '; done; \
|
||||
echo; \
|
||||
\
|
||||
set x $(debugflags) && shift && echo '#define MJIT_DEBUGFLAGS' \\ && \
|
||||
for w do echo ' "'$$w'",' \\ ; done; \
|
||||
echo ' /* MJIT_DEBUGFLAGS */'; \
|
||||
set x $(debugflags) && shift && echo -n '#define MJIT_DEBUGFLAGS ' && \
|
||||
for w do echo -n '"'$$w'", '; done; \
|
||||
echo; \
|
||||
\
|
||||
set x @LDSHARED@ && shift && echo '#define MJIT_LDSHARED' \\ && \
|
||||
for w do echo ' "'$$w'",' \\ ; done; \
|
||||
echo ' /* MJIT_LDSHARED */'; \
|
||||
set x @LDSHARED@ && shift && echo -n '#define MJIT_LDSHARED ' && \
|
||||
for w do echo -n '"'$$w'", '; done; \
|
||||
echo; \
|
||||
\
|
||||
set x @DLDFLAGS@ && shift && echo '#define MJIT_DLDFLAGS' \\ && \
|
||||
for w do echo ' "'$$w'",' \\ ; done; \
|
||||
echo ' /* MJIT_DLDFLAGS */'; \
|
||||
set x @DLDFLAGS@ && shift && echo -n '#define MJIT_DLDFLAGS ' && \
|
||||
for w do echo -n '"'$$w'", '; done; \
|
||||
echo; \
|
||||
\
|
||||
echo '#endif /* RUBY_MJIT_CONFIG_H */'; \
|
||||
} > $@
|
||||
cat $@ # debugging
|
||||
|
|
Loading…
Reference in a new issue