Coder Social home page Coder Social logo

Comments (7)

michaeleisel avatar michaeleisel commented on May 25, 2024

Yeah, this appears to be a flag that was added in a newer, not-yet-open-sourced ld. Just curious, does it work for you with Xcode 11.3? And can you add "-###" to the linker invocation, which prints the subprocesses it spawns, and paste the output.

from zld.

iKleMiX avatar iKleMiX commented on May 25, 2024
Apple clang version 11.0.3 (clang-1103.0.32.26)
Target: x86_64-apple-macos10.11
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/usr/local/bin/zld" "-demangle" "-lto_library" "/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib" "-dynamic" "-arch" "x86_64" "-exported_symbols_list" "/dev/null" "-force_load" "/Users/klemix/Library/Developer/Xcode/DerivedData/Platform-ganbmvkpevluiwgmzgnsmuyhoaga/Build/Products/Debug/libPlatform-macOS.a" "-force_load" "/Users/klemix/Library/Developer/Xcode/DerivedData/Platform-ganbmvkpevluiwgmzgnsmuyhoaga/Build/Products/Debug/libExternal-macOS.a" "-platform_version" "macos" "10.11.0" "10.15.4" "-syslibroot" "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk" "-ObjC" "-o" ... other flags releated to an app

this is the output with -### you can even see -platform_version here.
And with -### it does link, so I'm not sure it uses zld, once I remove it, it fails again.

I will try to find some time to try to recompile with Xcode 11.3 later.

from zld.

michaeleisel avatar michaeleisel commented on May 25, 2024

The -### appears to fix it simply because that option prevents actual linking from occurring, it's more like a dry-run

from zld.

iKleMiX avatar iKleMiX commented on May 25, 2024

Tested in Xcode 11.3 and it does work. So the problem is only with the new Xcode 11.4.

from zld.

michaeleisel avatar michaeleisel commented on May 25, 2024

Fixed in #23

from zld.

rmaz avatar rmaz commented on May 25, 2024

Looks like its just a generic way of passing in the deployment target instead of using -ios_version_min and friends.

https://reviews.llvm.org/D71579

Should be easy enough to convert on the way in to match the old behaviour (assuming the format of LC_BUILD_VERSION remains the same).

from zld.

michaeleisel avatar michaeleisel commented on May 25, 2024

Yep, good call. Hopefully that llvm.org will have some insights on our other outstanding questions as well

from zld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.