[llvm] r339639 - [CMake] Split -gx strip flag into -g -x

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 13 19:00:22 PDT 2018


Author: phosek
Date: Mon Aug 13 19:00:21 2018
New Revision: 339639

URL: http://llvm.org/viewvc/llvm-project?rev=339639&view=rev
Log:
[CMake] Split -gx strip flag into -g -x

llvm-strip doesn't handle -gx spelling, so we need to split these
as two separate flags.

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

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=339639&r1=339638&r2=339639&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Aug 13 19:00:21 2018
@@ -1566,7 +1566,7 @@ function(llvm_externalize_debuginfo name
       endif()
       set(strip_command COMMAND ${CMAKE_STRIP} -Sxl $<TARGET_FILE:${name}>)
     else()
-      set(strip_command COMMAND ${CMAKE_STRIP} -gx $<TARGET_FILE:${name}>)
+      set(strip_command COMMAND ${CMAKE_STRIP} -g -x $<TARGET_FILE:${name}>)
     endif()
   endif()
 




More information about the llvm-commits mailing list