Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 638584

Summary: dev-lang/rust: please add support for LLVM_TARGETS
Product: Gentoo Linux Reporter: Enne Eziarc <gentoo+bugs>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: RESOLVED DUPLICATE    
Severity: normal CC: Adrian.Bassett, hendrik, jstein, leio, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Enne Eziarc 2017-11-23 18:51:07 UTC
Since rust contains an entire copy of llvm and builds it while completely ignoring the system copy, it would be nice if there was at least a way to tell it not to waste half the build compiling dead code like the amdgpu or nvptx targets.
Comment 1 Adrian Bassett 2017-12-10 18:45:58 UTC
(In reply to Anthony Parsons from comment #0)
> Since rust contains an entire copy of llvm and builds it while completely
> ignoring the system copy, it would be nice if there was at least a way to
> tell it not to waste half the build compiling dead code like the amdgpu or
> nvptx targets.

Agreed.  Also, is it really necessary to use the bundled copy of llvm rather than system llvm?  And, if it is, are there quantifiable benefits of using llvm rather than the system gcc, i.e. what is the real point of the clang use flag (whether correctly used or not)?
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2018-03-11 23:05:40 UTC
We used to support the system LLVM but due to the way Gentoo modified LLVM it made it not work. I cannot recall the underlying bugs but I'm sure you can find them in Bugzilla. I can take a second look to see if things have improved since.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2018-03-11 23:06:58 UTC

*** This bug has been marked as a duplicate of bug 627288 ***