Skip to content

Commit

Permalink
Merge pull request #229 from o01eg/master
Browse files Browse the repository at this point in the history
Add support for sanitizers. Remove rustbuild option.
  • Loading branch information
cnd committed Feb 14, 2017
2 parents 32e7a62 + ac9ce54 commit d3c1cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit d3c1cc4

Please sign in to comment.