1
0
Fork 0
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:
k0kubun 2018-02-11 12:50:23 +00:00
parent d76179cefc
commit 71385538d2

View file

@ -542,30 +542,29 @@ mjit_config.h:
echo '#ifndef RUBY_MJIT_CONFIG_H'; \ echo '#ifndef RUBY_MJIT_CONFIG_H'; \
echo '#define RUBY_MJIT_CONFIG_H 1'; \ echo '#define RUBY_MJIT_CONFIG_H 1'; \
\ \
set x $(CC) && shift && echo '#define MJIT_CC_COMMON' \\ && \ set x $(CC) && shift && echo -n '#define MJIT_CC_COMMON ' && \
for w do echo ' "'$$w'",' \\ ; done; \ for w do echo -n '"'$$w'", '; done; \
echo ' /* MJIT_CC_COMMON */'; \ echo; \
\ \
set x -w $(ARCH_FLAG) && shift && echo '#define MJIT_CFLAGS' \\ && \ set x -w $(ARCH_FLAG) && shift && echo -n '#define MJIT_CFLAGS ' && \
for w do echo ' "'$$w'",' \\ ; done; \ for w do echo -n '"'$$w'", '; done; \
echo ' /* MJIT_CFLAGS */'; \ echo; \
\ \
set x $(optflags) && shift && echo '#define MJIT_OPTFLAGS' \\ && \ set x $(optflags) && shift && echo -n '#define MJIT_OPTFLAGS ' && \
for w do echo ' "'$$w'",' \\ ; done; \ for w do echo -n '"'$$w'", '; done; \
echo ' /* MJIT_OPTFLAGS */'; \ echo; \
\ \
set x $(debugflags) && shift && echo '#define MJIT_DEBUGFLAGS' \\ && \ set x $(debugflags) && shift && echo -n '#define MJIT_DEBUGFLAGS ' && \
for w do echo ' "'$$w'",' \\ ; done; \ for w do echo -n '"'$$w'", '; done; \
echo ' /* MJIT_DEBUGFLAGS */'; \ echo; \
\ \
set x @LDSHARED@ && shift && echo '#define MJIT_LDSHARED' \\ && \ set x @LDSHARED@ && shift && echo -n '#define MJIT_LDSHARED ' && \
for w do echo ' "'$$w'",' \\ ; done; \ for w do echo -n '"'$$w'", '; done; \
echo ' /* MJIT_LDSHARED */'; \ echo; \
\ \
set x @DLDFLAGS@ && shift && echo '#define MJIT_DLDFLAGS' \\ && \ set x @DLDFLAGS@ && shift && echo -n '#define MJIT_DLDFLAGS ' && \
for w do echo ' "'$$w'",' \\ ; done; \ for w do echo -n '"'$$w'", '; done; \
echo ' /* MJIT_DLDFLAGS */'; \ echo; \
\ \
echo '#endif /* RUBY_MJIT_CONFIG_H */'; \ echo '#endif /* RUBY_MJIT_CONFIG_H */'; \
} > $@ } > $@
cat $@ # debugging