Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntcqh-0007wC-U8 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 May 2022 22:17:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntcqg-000303-QG for pgsql-hackers@arkaria.postgresql.org; Tue, 24 May 2022 22:17:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntcqg-0002zq-E2 for pgsql-hackers@lists.postgresql.org; Tue, 24 May 2022 22:17:54 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntcqd-0004gK-8d for pgsql-hackers@postgresql.org; Tue, 24 May 2022 22:17:53 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id e20so15247249qvr.6 for ; Tue, 24 May 2022 15:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=F5i9fNoZPsT3nCoBI/7zxGTxdg8Hc0/1tA+kBp5UMhQ=; b=yqW31HIJRrJa9yHB9zHS/f8fU+I3w31F+1zqtsN9bo36MSDkRFiY6S6fNly+GLwPnY fd2bhXH3PbDtIVKwUxQxCSvyRmKKbgW+rmKPNXHJeMhDMRQwN+x5WIgRe+uGQh4F4CEa Ya6jaLAZTSzIPX4T/jA65MnB7EU/f46x7tgRcZrXuy1lYYm8jY4Z/9LRK3onE72tn59u ZhHbBEmtYkz32o1rf12R2Qz19cW5BjaVKDc9hQUHCbVlEMhjF/NLYw2x3qloKBeZvorb m/jnitSzx+VvZvkTL5esXfnf2HMeigWmeFN2DUwzADtLV39pVNBbl8RzC2re3Od4PBEK fPUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=F5i9fNoZPsT3nCoBI/7zxGTxdg8Hc0/1tA+kBp5UMhQ=; b=QETo9H+ctiU0vXP0McZC9vqYjJWTpdrjC/pt1QPkWfR4n5ZgopwSSFfrAxlsKHFHLs T8E+galcqxux5kbTxfj6eqc4jJ9641AzIdDYngA/swIZgdHWZNhqvHS3eQjIEkCGYInD UaTtE3EeQK/Vt+8mNyN3/WQz1pPPrYMJWXbW7ZT0e/2AXqHOiSCHpNyJVvVD8Bs2u/rz QPwbz2k7/CNis7nLXiMuwg7XDaQg0gbekyn4DOH0TH+ZRRrxys7Nlpa+BMinWYEi+NCp TH4Letr718/fIdxlcfc9BRQPIYljhYjb3itK5XZ1HCFd1q9t5nuyAjNMdTjK/J3Ki5+K Z3zw== X-Gm-Message-State: AOAM533vTJBtStSi/okZ4U9NINeY7dEzD1zXqLnF+0xZy+hZ6xEt7VRB bhhi+q81PpT09SWA6Sea0DCoMg== X-Google-Smtp-Source: ABdhPJw4Agx7wUp0unI0V0Sybnobnvmqyy68CaDMoLBF9U/fr/d/741S1xMicTNAW5jru1Il2ooMoA== X-Received: by 2002:a05:6214:258c:b0:461:d520:ae42 with SMTP id fq12-20020a056214258c00b00461d520ae42mr22968656qvb.126.1653430669351; Tue, 24 May 2022 15:17:49 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id p123-20020a37bf81000000b0069fd21d0b09sm301208qkf.0.2022.05.24.15.17.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2022 15:17:48 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 1AAB180057D; Tue, 24 May 2022 17:17:48 -0500 (CDT) Date: Tue, 24 May 2022 17:17:47 -0500 From: Justin Pryzby To: Andres Freund Cc: Tom Lane , Robert Haas , Andrew Dunstan , pgsql-hackers@postgresql.org, Thomas Munro , Melanie Plageman , Peter Eisentraut , Daniel Gustafsson Subject: Re: ccache, MSVC, and meson Message-ID: <20220524221747.GM19626@telsasoft.com> References: <20220522232606.GZ19626@telsasoft.com> <20220524193059.n432rlzezckxr6x2@alap3.anarazel.de> <20220524195202.GK19626@telsasoft.com> <20220524203039.xyqjggtytsyizsbl@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220524203039.xyqjggtytsyizsbl@alap3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, May 24, 2022 at 01:30:39PM -0700, Andres Freund wrote: > > As I recall, CC='ccache cl.exe' didn't work because it didn't attempt to do any > > argument splitting. > > I tried it, and it works for me when building with ninja (compiling with > cl.exe). I assume you are using msbuild? Apparently it works to write "ccache.exe" but not just "ccache", which is what I used before. It seems to work by fooling meson, which intends to strip off the leading "ccache" but fails due to the "exe", but then happens to do what's desired. If I'm not wrong, pgccache.exe + CCACHE_COMPILER=cl runs 30sec faster on cirrus. I suppose it's because windows is running cmd.exe on the CC="ccache.exe cl". Also, /O2 cuts ~3 minutes off the test time on cirrus, which seems worth it, except that it omits frame pointers, which probably breaks debuggability. And when I pass /Oy- to "avoid omitting" frame pointers, several tests crash...