Skip to content

Commit

Permalink
iffe depends on cc -E not inserting newlines between tokens
Browse files Browse the repository at this point in the history
Thanks to Andreas Schwab <schwab@suse.de> for the patch
  • Loading branch information
siteshwar committed May 15, 2017
1 parent c506cb5 commit 477c024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/INIT/iffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,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
Expand Down Expand Up @@ -3718,7 +3718,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
Expand Down

0 comments on commit 477c024

Please sign in to comment.