Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sanitizers. Remove rustbuild option. #229

Merged
merged 1 commit into from
Feb 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-lang/rust/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
library when building with <pkg>sys-devel/clang</pkg></flag>
<flag name="system-llvm">Use system <pkg>sys-devel/llvm</pkg> in
place of the bundled one</flag>
<flag name="sanitize">Add LeakSanitizer, ThreadSanitizer, AddressSanitizer and MemorySanitizer support</flag>
</use>
</pkgmetadata>
5 changes: 3 additions & 2 deletions dev-lang/rust/rust-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ HOMEPAGE="http://www.rust-lang.org/"
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
KEYWORDS=""

IUSE="clang debug doc libcxx source +system-llvm"
IUSE="clang debug doc libcxx source +system-llvm sanitize"
REQUIRED_USE="libcxx? ( clang )"

CDEPEND="libcxx? ( sys-libs/libcxx )
Expand All @@ -39,6 +39,7 @@ DEPEND="${CDEPEND}
>=dev-lang/perl-5.0
net-misc/wget
clang? ( sys-devel/clang )
sanitize? ( >=sys-kernel/linux-headers-3.2 )
"
RDEPEND="${CDEPEND}
"
Expand Down Expand Up @@ -71,7 +72,6 @@ src_configure() {
--release-channel=${release_channel%%/*} \
--extra-filename=${postfix} \
--disable-manage-submodules \
--disable-rustbuild \
--default-linker=$(tc-getBUILD_CC) \
--default-ar=$(tc-getBUILD_AR) \
--python=${EPYTHON} \
Expand All @@ -86,6 +86,7 @@ src_configure() {
$(use_enable !debug optimize-tests) \
$(use_enable doc docs) \
$(use_enable libcxx libcpp) \
$(use_enable sanitize sanitizers) \
|| die
}

Expand Down