[php-src] PR #15324: Support somewhat recent clang versions on Windows

From: Date: Sat, 10 Aug 2024 09:28:12 +0000
Subject: [php-src] PR #15324: Support somewhat recent clang versions on Windows
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-27807@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15324 Author: cmb69 Prior to clang 10.0.0, clang-cl -v apparently always appended some fine grained version information in parentheses[1]; this is no longer the case, so the build fails early because the compiler version could not be detected. Since we never used this fine grained version info, we no longer check for it. As of clang 13.0.0, the /fallback command option has been removed[2], so we only set the flag for older clang versions. [1] <https://github.com/php/php-src/pull/11313#discussion_r1712097627> [2] <https://releases.llvm.org/13.0.0/tools/clang/docs/ReleaseNotes.html#removed-compiler-flags> --- With these changes I've managed to have a successful minimal build (--with-toolset=clang --disable-all --enable-cli) with clang 18.1.8 on x64 Windows (didn't try x86 so far), if I set CFLAGS=-Wno-implicit-function-declaration. I'm going to follow up with a patch for the undeclared functions.

« previous php.git-pulls (#27807) next »