Page MenuHomePhabricator

build: swap otool for (llvm-)objdump
ClosedPublic

Authored by Fabien on Fri, Nov 29, 23:00.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC4c7d024ee4ad: build: swap otool for (llvm-)objdump
Summary
Similar to libtool, (llvm-)otool only exists with a version suffix
on some systems (Ubuntu), which makes it annoying to use/find. Avoid
this, by switching to objdump. Which is a drop-in replacement.

This is related to #21778, and the switchover to using vanilla LLVM for
macOS.

Backport of core#29739.

Depends on D17258.

Test Plan

Run the GUIX osx build

Event Timeline

Fabien requested review of this revision.Fri, Nov 29, 23:00

OSX.cmake still has a find_program(CMAKE_OTOOL ${TOOLCHAIN_PREFIX}-otool) line. Is it still needed?

In D17259#391854, @PiRK wrote:

OSX.cmake still has a find_program(CMAKE_OTOOL ${TOOLCHAIN_PREFIX}-otool) line. Is it still needed?

It's removed in a follow-up I'm working on (PR21778)

This revision is now accepted and ready to land.Sat, Nov 30, 08:36
This revision was automatically updated to reflect the committed changes.