[test-suite] r263959 - cmake/lit: Use CMAKE_STRIP variable to provide strip tool name to hash.py
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 10:40:09 PDT 2016
Author: atanasyan
Date: Mon Mar 21 12:40:08 2016
New Revision: 263959
URL: http://llvm.org/viewvc/llvm-project?rev=263959&view=rev
Log:
cmake/lit: Use CMAKE_STRIP variable to provide strip tool name to hash.py
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.
Differential Revision: http://reviews.llvm.org/D18308
Modified:
test-suite/trunk/lit.site.cfg.in
test-suite/trunk/litsupport/hash.py
Modified: test-suite/trunk/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.site.cfg.in?rev=263959&r1=263958&r2=263959&view=diff
==============================================================================
--- test-suite/trunk/lit.site.cfg.in (original)
+++ test-suite/trunk/lit.site.cfg.in Mon Mar 21 12:40:08 2016
@@ -7,6 +7,7 @@ config.remote_host = "@TEST_SUITE_REMOTE
config.remote_user = "@TEST_SUITE_REMOTE_USER@"
config.remote_port = "@TEST_SUITE_REMOTE_PORT@"
config.run_under = "@TEST_SUITE_RUN_UNDER@"
+config.strip_tool = "@CMAKE_STRIP@"
config.profile_generate = @TEST_SUITE_PROFILE_GENERATE@
config.llvm_profdata = "@TEST_SUITE_LLVM_PROFDATA@"
Modified: test-suite/trunk/litsupport/hash.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/hash.py?rev=263959&r1=263958&r2=263959&view=diff
==============================================================================
--- test-suite/trunk/litsupport/hash.py (original)
+++ test-suite/trunk/litsupport/hash.py Mon Mar 21 12:40:08 2016
@@ -15,7 +15,7 @@ def compute(context):
if platform.system() != 'Darwin':
stripped_executable = executable + '.stripped'
shutil.copyfile(executable, stripped_executable)
- subprocess.check_call(['strip',
+ subprocess.check_call([context.config.strip_tool,
'--remove-section=.comment',
"--remove-section='.note*'",
stripped_executable])
More information about the llvm-commits
mailing list