Page MenuHome

Use LLVM toolchain to get std::filesystem
AbandonedPublic

Authored by Ankit Meel (ankitm) on Aug 13 2021, 11:58 AM.

Details

Reviewers
None
Group Reviewers
Platform: macOS
Summary

It's a proof of concept for T90379.. a script can be added to download the llvm binaries
and set up toolchain automatically. I didn't do it out of fear of wasted
effort.

The bl.cmake shouldn't be in git, it's for demonstration. Devs would
have to edit it locally to match their system.

While building, I didn't have LLVM clang in path or any ENV vars
referring to it. No system disruption should happen.

If devs want, ofcourse they can change system wide compiler by
Xcode app menu > Toolchains > choosing LLVM one.

Needs to be tested

  • on buildbot if codesign works or not,
  • if blender launches on other systems or not etc.
  • if ccache option works or not.
  • if works with xcode 10 or not

Diff Detail

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

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Aug 13 2021, 11:58 AM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Aug 13 2021, 12:06 PM
  • Ensure correct stdlib
  • Copy abi; add comment to link to docs.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Aug 13 2021, 3:01 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Aug 13 2021, 4:54 PM

Do we want to go this way ?

This seems a lot more involved and fragile than the current alternative to get this functionality (ghc::filesystem) I'm not convinced this is the way to go.

Switching to a custom compiler toolchain should have a very good reason, the build infrastructure is already complex enough. I don't think std::filesystem is a good reason.