From nobody Mon Dec 27 21:12:45 2021 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1209F19169A7 for ; Mon, 27 Dec 2021 21:12:46 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JN9Ns5qCzz4j77; Mon, 27 Dec 2021 21:12:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A7F8B24E39; Mon, 27 Dec 2021 21:12:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BRLCjMZ098033; Mon, 27 Dec 2021 21:12:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BRLCjIS098032; Mon, 27 Dec 2021 21:12:45 GMT (envelope-from git) Date: Mon, 27 Dec 2021 21:12:45 GMT Message-Id: <202112272112.1BRLCjIS098032@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: =?utf-8?Q?Fernando Apestegu=C3=ADa?= Subject: git: e64ee42b3c - main - [phb]: Use AsciiDoc built-in attributes for "c++" List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e64ee42b3cb4234cba74c3cf837a4ef7f7363974 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640639565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=96ySN7E27XtljPDYAxV9b5vDg2bKLwr6cIla1V8b8A8=; b=d6Ex0ziXs766MPrADRkZlix+3leEfWjLCVVm01ZAgUNbJWGscbXxJGvtumHJdml5g15gvH RsdJvODSfstCMpSA6xd2Awb+ccpbWCqQN6D3uC38rmgnHQcUZ61xXmMsjD60QlnDNwiiOI clTxVT8vIAMnPp8axtYdvV+08zMDJuc08OoJDW4PVhb9x4q3SzTChoXo2J1SefZeXRe//v gScGIIloJnpUsrMPQz3CKywGPGyhFswYEFHWKXLonOO4fMrNDZR+WXOcwKMumpkzkaCJVh PX9VwijlFQ5KmvpCyIe0RAIynvkia1eMwtncvXnIHd//bdAiSXgUSdMDx8GX+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640639565; a=rsa-sha256; cv=none; b=tVxHDLnjFGKd5QA3G3WsUYTJqE0nsI6+fchKuuJPNrL5vcngXiLgAuDSVdXbls7C23yRs+ ViR0CtQ9qja/4qKLBQ8ahg69b1xXIXtLj5LPYiAW4Np3KmsHWYp3HZfRS6157nYFv4lj0k b7viSRD94MRZeZJFijKLhxOJRKbjIcU5r6cklYzmOIjSN1GKM5L4mQTrwEJT5HeOd/6+UV PAun1jKgZn2tswQxTnzP9wQG5BPFVX/EiOYnpzu9FsoiStfeOWv2ufMOD+Meb2mU/xiAWu kBIiR3UC8duaKeM/wWw+JezewQGle3zgA52z4bV3gW6CLXBn02L5HnnTWuR+DQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/doc/commit/?id=e64ee42b3cb4234cba74c3cf837a4ef7f7363974 commit e64ee42b3cb4234cba74c3cf837a4ef7f7363974 Author: Fernando ApesteguĂ­a AuthorDate: 2021-12-27 20:15:27 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2021-12-27 20:15:27 +0000 [phb]: Use AsciiDoc built-in attributes for "c++" Use built-in character replacement for "c++" instead of custom label. Discussed with carlavilla@. --- documentation/content/en/books/porters-handbook/uses/_index.adoc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc index 06c5ed4421..13d1ce34a0 100644 --- a/documentation/content/en/books/porters-handbook/uses/_index.adoc +++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc @@ -21,7 +21,6 @@ path: "/books/porters-handbook/" :partnums: :source-highlighter: rouge :experimental: -:c-plus-plus: c++ :images-path: books/porters-handbook/ ifdef::env-beastie[] @@ -272,11 +271,11 @@ For more information see crossref:special[using-cmake,Using `cmake`]. [[uses-compiler]] == `compiler` -Possible arguments: (none), `env` (default, implicit), `{c-plus-plus}17-lang`, `{c-plus-plus}14-lang`, `{c-plus-plus}11-lang`, `gcc-{c-plus-plus}11-lib`, `{c-plus-plus}11-lib`, `{c-plus-plus}0x`, `c11`, `nestedfct`, `features` +Possible arguments: (none), `env` (default, implicit), `{cpp}17-lang`, `{cpp}14-lang`, `{cpp}11-lang`, `gcc-{cpp}11-lib`, `{cpp}11-lib`, `{cpp}0x`, `c11`, `nestedfct`, `features` Determines which compiler to use based on any given wishes. -Use `{c-plus-plus}17-lang` if the port needs a {c-plus-plus}17-capable compiler, `{c-plus-plus}14-lang` if the port needs a {c-plus-plus}14-capable compiler, `{c-plus-plus}11-lang` if the port needs a {c-plus-plus}11-capable compiler, `gcc-{c-plus-plus}11-lib` if the port needs the `g++` compiler with a {c-plus-plus}11 library, or `{c-plus-plus}11-lib` if the port needs a {c-plus-plus}11-ready standard library. -If the port needs a compiler understanding {c-plus-plus}0X, C11 or nested functions, the corresponding parameters should be used. +Use `{cpp}17-lang` if the port needs a {cpp}17-capable compiler, `{cpp}14-lang` if the port needs a {cpp}14-capable compiler, `{cpp}11-lang` if the port needs a {cpp}11-capable compiler, `gcc-{cpp}11-lib` if the port needs the `g++` compiler with a {cpp}11 library, or `{cpp}11-lib` if the port needs a {cpp}11-ready standard library. +If the port needs a compiler understanding {cpp}0X, C11 or nested functions, the corresponding parameters should be used. Use `features` to request a list of features supported by the default compiler. After including [.filename]#bsd.port.pre.mk# the port can inspect the results using these variables: @@ -286,7 +285,7 @@ After including [.filename]#bsd.port.pre.mk# the port can inspect the results us * `COMPILER_VERSION`: the first two digits of the version of the default compiler. * `ALT_COMPILER_VERSION`: the first two digits of the version of the alternative compiler, if present. * `CHOSEN_COMPILER_TYPE`: the chosen compiler, either gcc or clang -* `COMPILER_FEATURES`: the features supported by the default compiler. It currently lists the {c-plus-plus} library. +* `COMPILER_FEATURES`: the features supported by the default compiler. It currently lists the {cpp} library. [[uses-cpe]] == `cpe`