Skip to content

Commit

Permalink
cmake: lookup strip tool and set CMAKE_STRIP for host-gnu target
Browse files Browse the repository at this point in the history
Fixes: #51821

Set CMAKE_STRIP using `find_program(CMAKE_STRIP strip)` to support
strip when building on native posix.

Signed-off-by: Torsten Rasmussen <[email protected]>
  • Loading branch information
tejlmand authored and carlescufi committed Nov 1, 2022
1 parent 0a7c25e commit 1ee86a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/bintools/host-gnu/target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ find_program(CMAKE_AR ar )
find_program(CMAKE_RANLIB ranlib )
find_program(CMAKE_READELF readelf)
find_program(CMAKE_NM nm)
find_program(CMAKE_STRIP strip)

find_program(CMAKE_GDB gdb )

Expand Down

0 comments on commit 1ee86a8

Please sign in to comment.