From owner-svn-ports-all@freebsd.org Mon May 18 18:40:42 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6BA342DA2CB; Mon, 18 May 2020 18:40:42 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Qnrp2HK0z49Y6; Mon, 18 May 2020 18:40:42 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 49A2D25D48; Mon, 18 May 2020 18:40:42 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 04IIegI4006090; Mon, 18 May 2020 18:40:42 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 04IIefre006088; Mon, 18 May 2020 18:40:41 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <202005181840.04IIefre006088@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Mon, 18 May 2020 18:40:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r535771 - in head/lang: rust rust-nightly X-SVN-Group: ports-head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in head/lang: rust rust-nightly X-SVN-Commit-Revision: 535771 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2020 18:40:42 -0000 Author: asomers (src committer) Date: Mon May 18 18:40:41 2020 New Revision: 535771 URL: https://svnweb.freebsd.org/changeset/ports/535771 Log: lang/rust-nightly: enable the Rust profiler Enable the rust profiler on rust-nightly (as an unstable feature, it's not allowed on the stable toolchain). This allows it to generate code coverage reports. https://doc.rust-lang.org/unstable-book/compiler-flags/profile.html https://crates.io/crates/grcov Reviewed by: tobik Approved by: tobik (maintainer) Differential Revision: https://reviews.freebsd.org/D24765 Modified: head/lang/rust-nightly/Makefile head/lang/rust/Makefile Modified: head/lang/rust-nightly/Makefile ============================================================================== --- head/lang/rust-nightly/Makefile Mon May 18 18:33:10 2020 (r535770) +++ head/lang/rust-nightly/Makefile Mon May 18 18:40:41 2020 (r535771) @@ -3,7 +3,7 @@ PORTVERSION= 1.45.0.${NIGHTLY_DATE:C,-,,g} # Always set PORTREVISION explicitly as otherwise it is inherited from lang/rust -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -nightly DISTNAME= rustc-nightly-src Modified: head/lang/rust/Makefile ============================================================================== --- head/lang/rust/Makefile Mon May 18 18:33:10 2020 (r535770) +++ head/lang/rust/Makefile Mon May 18 18:40:41 2020 (r535771) @@ -133,6 +133,9 @@ do-configure: @${ECHO_CMD} 'python="${PYTHON_CMD}"' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'docs=${_RUST_BUILD_DOCS}' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'verbose=2' >> ${WRKSRC}/config.toml +.if defined(NIGHTLY_DATE) + @${ECHO_CMD} 'profiler=true' >> ${WRKSRC}/config.toml +.endif @${ECHO_CMD} 'target=[${_RUST_TARGETS:@.target.@"${.target.}"@:ts,}]' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'cargo="${WRKDIR}/bootstrap/bin/cargo"' >> ${WRKSRC}/config.toml @${ECHO_CMD} 'rustc="${WRKDIR}/bootstrap/bin/rustc"' >> ${WRKSRC}/config.toml