This is an archive of the discontinued LLVM Phabricator instance.

cmake/lit: Use CMAKE_STRIP variable to provide strip tool name to hash.py
ClosedPublic

Authored by atanasyan on Mar 20 2016, 11:50 PM.

Details

Summary

Host strip tool cannot recognize binary format of files built for another target architecture. The patch allows to override default strip tool name using CMAKE_STRIP configuration variable.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan updated this revision to Diff 51141.Mar 20 2016, 11:50 PM
atanasyan retitled this revision from to cmake/lit: Use CMAKE_STRIP variable to provide strip tool name to hash.py.
atanasyan updated this object.
atanasyan added reviewers: jmolloy, MatzeB.
atanasyan set the repository for this revision to rL LLVM.
atanasyan added a subscriber: llvm-commits.
jmolloy accepted this revision.Mar 21 2016, 1:34 AM
jmolloy edited edge metadata.

Hi Simon,

LGTM with one change.

Cheers,

James

CMakeLists.txt
82

CMake discovers "strip" by itself. This variable should never be unset, so you shouldn't need this code here.

(My CMakeCache.txt without this patch applied defines CMAKE_STRIP:FILEPATH=/usr/bin/strip)

This revision is now accepted and ready to land.Mar 21 2016, 1:34 AM

LGTM with one change.

Thanks for review.

This revision was automatically updated to reflect the committed changes.