diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-11 14:38:54 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-11 14:38:54 +0000 |
commit | e19457e61a1b88f7fa76e00b99eb85036c918ec5 (patch) | |
tree | 4b99a8723308cadc54bcc02385960151a8e017e5 | |
parent | b9bedc2d3316fc910522d399c270a565bab3d5fd (diff) | |
download | ruby-e19457e61a1b88f7fa76e00b99eb85036c918ec5.tar.gz |
Makefile.in: prevent from building `"",` macro
Loop removal in r62373 caused the CI failure like:
https://travis-ci.org/ruby/ruby/builds/340136977
mjit_config.h was:
#ifndef RUBY_MJIT_CONFIG_H
#define RUBY_MJIT_CONFIG_H 1
#define MJIT_CC_COMMON "gcc",
#define MJIT_CFLAGS "-w",
#define MJIT_OPTFLAGS "-O3",
#define MJIT_DEBUGFLAGS "-ggdb3",
#define MJIT_LDSHARED "gcc", "-shared",
#define MJIT_DLDFLAGS "",
#endif /* RUBY_MJIT_CONFIG_H */
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in index 063c1d4d2f..082f722ef4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -543,7 +543,7 @@ mjit_config.h: echo '#define RUBY_MJIT_CONFIG_H 1'; \ \ printf '#define MJIT_CC_COMMON ' && \ - printf ' "%s",' $(CC) && \ + if test -n "$(CC)"; then printf ' "%s",' $(CC); fi && \ echo; \ \ printf '#define MJIT_CFLAGS ' && \ @@ -551,19 +551,19 @@ mjit_config.h: echo; \ \ printf '#define MJIT_OPTFLAGS ' && \ - printf ' "%s",' $(optflags) && \ + if test -n "$(optflags)"; then printf ' "%s",' $(optflags); fi && \ echo; \ \ printf '#define MJIT_DEBUGFLAGS ' && \ - printf ' "%s",' $(debugflags) && \ + if test -n "$(debugflags)"; then printf ' "%s",' $(debugflags); fi && \ echo; \ \ printf '#define MJIT_LDSHARED ' && \ - printf ' "%s",' @LDSHARED@ && \ + if test -n "@LDSHARED@"; then printf ' "%s",' @LDSHARED@; fi && \ echo; \ \ printf '#define MJIT_DLDFLAGS ' && \ - printf ' "%s",' @DLDFLAGS@ && \ + if test -n "@DLDFLAGS@"; then printf ' "%s",' @DLDFLAGS@; fi && \ echo; \ \ echo '#endif /* RUBY_MJIT_CONFIG_H */'; \ |