[PATCH] D18308: 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:45:14 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL263959: cmake/lit: Use CMAKE_STRIP variable to provide strip tool name to hash.py (authored by atanasyan).

Changed prior to commit:
  http://reviews.llvm.org/D18308?vs=51141&id=51187#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18308

Files:
  test-suite/trunk/lit.site.cfg.in
  test-suite/trunk/litsupport/hash.py

Index: test-suite/trunk/litsupport/hash.py
===================================================================
--- test-suite/trunk/litsupport/hash.py
+++ test-suite/trunk/litsupport/hash.py
@@ -15,7 +15,7 @@
         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])
Index: test-suite/trunk/lit.site.cfg.in
===================================================================
--- test-suite/trunk/lit.site.cfg.in
+++ test-suite/trunk/lit.site.cfg.in
@@ -7,6 +7,7 @@
 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@"
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18308.51187.patch
Type: text/x-patch
Size: 1160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160321/0d5dfcaf/attachment-0001.bin>


More information about the llvm-commits mailing list