OSDN Git Service

[CMake] Use CMAKE_OBJCOPY and CMAKE_STRIP to externalize debug info
authorPetr Hosek <phosek@chromium.org>
Wed, 9 May 2018 00:07:42 +0000 (00:07 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 9 May 2018 00:07:42 +0000 (00:07 +0000)
commit31dcd10658762a5bbe6be8e148a738fe47dc0a2d
treed357ba38307a4c0c81f84f1436c6b04f32d28a11
parent33b646c42898fed5f6651851aa618a17a1f8f427
[CMake] Use CMAKE_OBJCOPY and CMAKE_STRIP to externalize debug info

Don't hardcode objcopy and strip names, rather use CMAKE_OBJCOPY and
CMAKE_STRIP variables which allows users to override the tools used
such as using llvm-objcopy and llvm-strip instead of binutils versions.

Differential Revision: https://reviews.llvm.org/D46611

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331827 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake