1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix clang compiler detection on Windows

A previous commit[1] left a "debug" statement, which causes clang
builds on Windows to fail always.

[1] <b3d6414b87>

Closes GH-17450.
This commit is contained in:
Christoph M. Becker
2025-01-12 16:40:59 +01:00
parent 3c138641e1
commit 58628e0cc6
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@@ -59,6 +59,9 @@ PHP NEWS
. Fixed bug GH-15833 (Segmentation fault (access null pointer) in
ext/spl/spl_array.c). (nielsdos)
- Windows:
. Fixed clang compiler detection. (cmb)
- Zip:
. Fixed bug GH-17139 (Fix zip_entry_name() crash on invalid entry).
(nielsdos)

View File

@@ -3125,7 +3125,7 @@ function toolset_get_compiler_name(short)
var command = 'cmd /c ""' + PHP_CL + '" -v"';
var full = execute(command + '" 2>&1"');
ERROR(full.split(/\n/)[0].replace(/\s/g, ' '));
return full.split(/\n/)[0].replace(/\s/g, ' ');
}
WARNING("Unsupported toolset");