Skip to content

Commit b6c8349

Browse files
committed
pass vc++ version to clang, that will be forwarded to _MSC_VER
1 parent 191fe09 commit b6c8349

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

win32/build/confutils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,6 +2604,9 @@ function toolset_setup_common_cflags()
26042604
ADD_FLAG('CFLAGS', '-m32');
26052605
}
26062606
ADD_FLAG("CFLAGS", " /fallback ");
2607+
2608+
var vc_ver = probe_binary(PATH_PROG('cl', null));
2609+
ADD_FLAG("CFLAGS", "-fms-compatibility-version=" + vc_ver);
26072610
}
26082611
}
26092612

0 commit comments

Comments
 (0)