summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-03-11 20:21:23 +0100
committerAnatol Belski <ab@php.net>2018-03-11 23:08:27 +0100
commit754be224d2d3ccef09e6bd39c2a6f4272a1c06ab (patch)
tree34dc3888935d2376afb7741375ba55eb5b253a82
parentef01ec08f080987c3614bd5658a87e985e28fa06 (diff)
downloadphp-git-754be224d2d3ccef09e6bd39c2a6f4272a1c06ab.tar.gz
Fix clang build and analyze with SIMD enabled
-rw-r--r--win32/build/confutils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 1290bf54d5..d9b98ed71d 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -1670,7 +1670,7 @@ function ADD_SOURCES(dir, file_list, target, obj_dir)
vc_ver = probe_binary(PATH_PROG('cl', null));
}
- analyzer_base_args += " -fms-compatibility -fms-compatibility-version=" + vc_ver + " -fms-extensions -Xclang -analyzer-output=text";
+ analyzer_base_args += " -fms-compatibility -fms-compatibility-version=" + vc_ver + " -fms-extensions -Xclang -analyzer-output=text -Xclang -fmodules";
} else if (PHP_ANALYZER == "cppcheck") {
var analyzer_base_args = "";
var analyzer_base_flags = "";
@@ -3229,6 +3229,7 @@ function toolset_setup_common_cflags()
ADD_FLAG('CFLAGS', '-m32');
}
ADD_FLAG("CFLAGS", " /fallback ");
+ ADD_FLAG("CFLAGS", "-Xclang -fmodules");
var vc_ver = probe_binary(PATH_PROG('cl', null));
ADD_FLAG("CFLAGS"," -fms-compatibility -fms-compatibility-version=" + vc_ver + " -fms-extensions");