Re: Remove MSVC scripts from the tree
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Peter Eisentraut <peter@eisentraut.org>,
Michael Paquier <michael@paquier.xyz>
Cc: NINGWEI CHEN <chen@sraoss.co.jp>, pgsql-hackers@lists.postgresql.org,
buildfarm@sraoss.co.jp
Date: 2023-12-06T16:27:44Z
Lists: pgsql-hackers
On 2023-12-06 We 01:18, Peter Eisentraut wrote: > On 04.12.23 21:11, Andrew Dunstan wrote: >> I just had a look at shifting bowerbird to use meson, and it got >> stymied at the c99 test, which apparently doesn't compile with >> anything less than VS2019. > > If that is the case, then wouldn't that invalidate the documented > claim that you can build with VS2015 or newer? Indeed it would. Here's what the Microsoft site says at <https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170>: > You can invoke the Microsoft C compiler by using the /TC or /Tc > compiler option. It's used by default for code that has a .c file > extension, unless overridden by a /TP or /Tp option. The default C > compiler (that is, the compiler when /std:c11 or /std:c17 isn't > specified) implements ANSI C89, but includes several Microsoft > extensions, some of which are part of ISO C99. Some Microsoft > extensions to C89 can be disabled by using the /Za compiler option, > but others remain in effect. It isn't possible to specify strict C89 > conformance. The compiler doesn't implement several required features > of C99, so it isn't possible to specify C99 conformance, either. But the VS2019 compiler implements enough of C99 to pass our meson test, unlike VS2017. Maybe the test is too strict. After all, we know we can in fact build with the earlier versions. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
Commits
-
Make win32tzlist.pl checkable again
- 8ddf9c1dc020 17.0 landed
-
meson: Make gzip and tar optional
- 9ca6e7b9411e 17.0 landed
-
meson: Make sed optional
- 9aa374dcfb76 17.0 landed
-
Remove MSVC scripts
- 1301c80b2167 17.0 landed
-
Replace Gen_dummy_probes.sed with Gen_dummy_probes.pl
- 3849fe7c2ba7 17.0 landed