Permalink
Browse files

iffe depends on cc -E not inserting newlines between tokens

Thanks to Andreas Schwab <schwab@suse.de> for the patch
  • Loading branch information...
siteshwar committed May 15, 2017
1 parent 3f54fd6 commit e79c29295092fe2b2282d134e2b7cce32ec9dcac
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cmd/INIT/iffe.sh
View
@@ -3398,7 +3398,7 @@ $src
(eval "$src") <&$nullin || e=1
;;
mac*|nomac*)
if compile $cc -E $tmp.c <&$nullin >$tmp.i
if compile $cc -E -P $tmp.c <&$nullin >$tmp.i
then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i
else e=1
fi
@@ -3689,7 +3689,7 @@ $inc
<<\"#define $v\">> $v <<\"/* native $v */\">>
<<\"#endif\">>
#endif" > $tmp.c
if compile $cc -E $tmp.c <&$nullin >$tmp.i
if compile $cc -E -P $tmp.c <&$nullin >$tmp.i
then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i > $tmp.t
if test -s $tmp.t
then success

0 comments on commit e79c292

Please sign in to comment.