Commit
6a624c1[1] mostly replaced `COMPILER_NAME` with
`COMPILER_NAME_LONG` and `COMPILER_NAME_SHORT`, but not all
occurrences, what broke the Clang ASAN configuration. We fix this by
getting rid of `COMPILER_NAME` altogether.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=
6a624c1dfda0dbfaaff3e453e6cb58de12748fb3>
if ("unknown" == COMPILER_NAME_LONG) {
var tmp = probe_binary(PHP_CL);
- COMPILER_NAME = "MSVC " + tmp + ", untested";
+ COMPILER_NAME_LONG = COMPILER_NAME_SHORT = "MSVC " + tmp + ", untested";
WARNING("Using unknown MSVC version " + tmp);
var ret = null;
var ver = null;
- if (COMPILER_NAME.match(/clang version ([\d\.]+) \((.*)\)/)) {
+ if (COMPILER_NAME_LONG.match(/clang version ([\d\.]+) \((.*)\)/)) {
ver = RegExp.$1;
} else {
ERROR("Faled to determine clang lib path");
var ver = null;
- if (COMPILER_NAME.match(/clang version ([\d\.]+) \((.*)\)/)) {
+ if (COMPILER_NAME_LONG.match(/clang version ([\d\.]+) \((.*)\)/)) {
ver = RegExp.$1;
} else {
ERROR("Faled to determine clang lib path");