Force the readelf call to be in English

Summary:
For example, when readelf is called on a french localization, it will find "Librairie partagées" instead of "shared library"


Reviewers: AndreyChurbanov, jcownie

Differential Revision: http://reviews.llvm.org/D12902

llvm-svn: 247787
This commit is contained in:
Sylvestre Ledru 2015-09-16 12:01:14 +00:00
parent 205d1993bb
commit 6dabac88db

View File

@ -105,6 +105,11 @@ sub get_deps_readelf($) {
$tool = "readelf";
}
# Force the readelf call to be in English. For example, when readelf
# is called on a french localization, it will find "Librairie partagees"
# instead of shared library
$ENV{ LANG } = "C";
execute( [ $tool, "-d", $file ], -stdout => \@bulk );
debug( @bulk, "(eof)" );