Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T tor-browser-build
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 214
    • Issues 214
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Applications
  • tor-browser-build
  • Issues
  • #40592
Closed
Open
Issue created Aug 08, 2022 by Pier Angelo Vendrame@pierovMaintainer

Consider re-using our LLVM/Clang to build Rust

Rust re-builds LLVM, which takes a long time.

We could simply reuse the LLVM/Clang we build, and reduce the Rust compiling time, by adding -DLLVM_INSTALL_UTILS=ON to the options we use to compile Clang.

The only disadvantage is that we link everything to the updated libstdc++. On Rust we currently pass --enable-llvm-static-stdcpp. In my test I've removed it and defined -DLLVM_STATIC_LINK_CXX_STDLIB=ON on Clang, but it wasn't enough. As a workaround, we could either create a project that extracts libstdc++ from GCC, and provides it to projects that want to use Rust without a dependency on GCC (currently only cbindgen), or copy libstdc++ also to Rust.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking