michaeleisel / zld

A faster version of Apple's linker
MIT License
1.19k stars 50 forks source link

support CommandLineTools users #100

Closed izirku closed 2 years ago

izirku commented 2 years ago

Locally running the following, adds CommandLineTools lib folder to rpath allowing to use zld without the need for full XCode installation:

install_name_tool -add_rpath /Library/Developer/CommandLineTools/usr/lib zld

Would it be possible to add this to Github workflows (if it supports it of course)?

This also solves a prior issue #69

P.S. This is a hack, maybe there is a better way to do it

michaeleisel commented 2 years ago

Please try compiling zld from the branch add-command-line-tools-to-runpaths and let me know if it solves your problem

izirku commented 2 years ago

I tried building, requires XCode:

xcodebuild -project ld/zld.xcodeproj -scheme zld -derivedDataPath build -configuration Release build
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
make: *** [build] Error 1
michaeleisel commented 2 years ago

I see, well then this isn't possible. I've updated the readme to reflect that Xcode is required.

michaeleisel commented 2 years ago

1.3.4 has support now for it, let me know how it goes if you still dont' have Xcode