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@" 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])