From patchwork Tue Apr 21 07:26:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 1273998 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=qx3o/8pF; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 495w9z2jGMz9sSK for ; Tue, 21 Apr 2020 17:27:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6693F386F434; Tue, 21 Apr 2020 07:26:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6693F386F434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587454019; bh=A9iJNsGEZpQoo3Hz++DLOpGe7A8Ylmaq8IJrIkfyLu0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=qx3o/8pFvxvlJeS9AJVV+tW55VgyjfopJ781U89/2fKftrvmrkUhZRtdAAtNB9yPW Sc5Ky67pyGbtDe5DMCMUgWiNm4inzU2c4JyJZ0hgrjzunwvG9+nFkOToIPV/ViKHD/ +kJuEPMsnL3nyPDotxzKNHXE6UsYbRuEvAu7tZuQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050::465:202]) by sourceware.org (Postfix) with ESMTPS id 6FB16384B0C1 for ; Tue, 21 Apr 2020 07:26:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6FB16384B0C1 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 495w9p6qWlzQlGk; Tue, 21 Apr 2020 09:26:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id Y6uEY47us7cR; Tue, 21 Apr 2020 09:26:51 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] doc: Document all D-specific configuration options. Date: Tue, 21 Apr 2020 09:26:39 +0200 Message-Id: <20200421072639.13898-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: E856E178B X-Rspamd-Score: 1.30 / 15.00 / 15.00 X-Spam-Status: No, score=-27.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Buclaw via Gcc-patches From: Iain Buclaw Reply-To: Iain Buclaw Cc: doko@ubuntu.com Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi, This patch adds documentation for --enable-libphobos-checking and --with-libphobos-druntime-only options. Does it read and explain clearly enough? Regards Iain. gcc/ChangeLog: * doc/install.texi (D-Specific Options): Document --enable-libphobos-checking and --with-libphobos-druntime-only. --- gcc/doc/install.texi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index bc5259d74c5..39ae0680260 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -2460,6 +2460,37 @@ default locations. The following options apply to the build of the D runtime library. @table @code +@item --enable-libphobos-checking +@itemx --disable-libphobos-checking +@itemx --enable-libphobos-checking=@var{list} +This option controls whether run-time checks and contracts are compiled into +the D runtime library. When the option is not specified, the library is built +with @samp{release} checking. When the option is specified without a +@var{list}, the result is the same as @samp{--enable-libphobos-checking=yes}. +Likewise, @samp{--disable-libphobos-checking} is equivalent to +@samp{--enable-libphobos-checking=no}. + +The categories of checks available in @var{list} are @samp{yes} (compiles +libphobos with @option{-fno-release}), @samp{no} (compiles libphobos with +@option{-frelease}), @samp{all} (same as @samp{yes}), @samp{none} or +@samp{release} (same as @samp{no}). + +Individual checks available in @var{list} are @samp{assert} (compiles libphobos +with an extra option @option{-fassert}). + +@item --with-libphobos-druntime-only +@itemx --with-libphobos-druntime-only=@var{choice} +Specify whether to build only the core D runtime library (druntime), or both +the core and standard library (phobos) into libphobos. This is useful for +targets that have full support in druntime, but no or incomplete support +in phobos. @var{choice} can be one of @samp{auto}, @samp{yes}, and @samp{no} +where @samp{auto} is the default. + +When the option is not specified, the default choice @samp{auto} means that it +is inferred whether the target has support for the phobos standard library. +When the option is specified without a @var{choice}, the result is the same as +@samp{--with-libphobos-druntime-only=yes}. + @item --with-target-system-zlib Use installed @samp{zlib} rather than that included with GCC@. This needs to be available for each multilib variant, unless configured with