Fix processing of gold.exports.

llvm-svn: 127471
This commit is contained in:
Oscar Fuentes 2011-03-11 18:07:46 +00:00
parent 982efb5c89
commit 87e4a4da0d

View File

@ -22,7 +22,7 @@ else()
add_custom_command(OUTPUT exportsfile
COMMAND echo "{" > exportsfile
COMMAND grep -q "\\<" ${srcexp} && echo " global:" >> exportsfile || :
COMMAND sed -e "s/\$\$/;/" -e "s/^/ /" < ${srcexp} >> exportsfile
COMMAND sed -e "s/$/;/" -e "s/^/ /" < ${srcexp} >> exportsfile
COMMAND echo " local: *;" >> exportsfile
COMMAND echo "};" >> exportsfile
DEPENDS ${srcexp}