Summary: | dev-lang/rust-1.19.0 fails to build when CFLAGS contains any flag not supported by C++ compiler | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis <arfrever.fta> |
Component: | Current packages | Assignee: | Gentoo Rust Project <rust> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | jstein, navi, randy, rust, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
rust-1.19.0:20170825-080215.log
rust-1.19.0-CXXFLAGS.patch |
Description
Arfrever Frehtes Taifersar Arahesis
2017-08-25 08:23:01 UTC
Created attachment 490514 [details]
rust-1.19.0:20170825-080215.log
Created attachment 490516 [details, diff]
rust-1.19.0-CXXFLAGS.patch
This patch creates cxxflags() function, which was copied from cflags() function and adjusted to use CXXFLAGS (available as self.cxx[target].args()) instead of CFLAGS (available as self.cc[target].0.args()).
Would you mind submitting this patch upstream first? I think it should have been fixed for a while.
src/boostrap/native.rs got an extra *CFLAG handlers, but we don't use them as environment flags seem to be working fine.
config.toml may be used to pass EXTRA flags to bundled llvm.
> [llvm]
> #cflags = "-fextra-flag"
> #cxxflags = "-fextra-flag"
> #ldflags = "-Wl,extra-flag"
but env flags should be respected as well.
But I'll try adding something non-standard env flags and check again.
|