Skip to content

Commit b8e80fb

Browse files
committed
Preserve old pch detection behavior
> Apple and Android toolchains set USE_PRECOMPILED_HEADERS to gcc (by including gcc-toolchain.xml) so that needs to be overriden for precompiled headers to work. Just hardcode a special case for clang-cl for now.
1 parent 544a6aa commit b8e80fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/hxcpp/Compiler.hx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ class Compiler
697697
mPCH = inPCH;
698698
createCompilerVersion();
699699
final regex = ~/clang/i;
700-
if (inPCH == null && regex.match(mCompilerVersionString)) {
700+
if (inPCH != null && regex.match(mCompilerVersionString) && !BuildTool.isMsvcLlvm()) {
701701
mPCH = "clang";
702702
}
703703
switch (mPCH) {

0 commit comments

Comments
 (0)