Page MenuHome

CMake/macOS: Replace -Xlinker flag with -Wl.
ClosedPublic

Authored by Ankit Meel (ankitm) on Nov 21 2020, 8:59 PM.

Details

Summary

Causes link issues on Xcode-12 where the "New Build System"
is the default.
https://devtalk.blender.org/t/input-file-cannot-be-found-xlinker/16273

Another fix is to set build system to legacy using -T buildsystem=1 flag
in CMake. But it needs CMake 3.19. See CMAKE_XCODE_BUILD_SYSTEM.

Diff Detail

Repository
rB Blender
Branch
linker (branched from master)
Build Status
Buildable 11382
Build 11382: arc lint + arc unit

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Nov 21 2020, 8:59 PM
Ankit Meel (ankitm) created this revision.

Another usage is in findpythonunixlibs cmake module. But that's not used for macOS. Hope that's fine.

Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Nov 21 2020, 9:03 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Nov 22 2020, 10:48 AM

This patch appears to do the trick, with it applied I can build in Xcode using the "new build system".

This revision is now accepted and ready to land.Nov 23 2020, 11:18 AM
This revision was automatically updated to reflect the committed changes.