Skip to content

Commit 1f99e93

Browse files
committed
add HAVE_PRESERVE_NONE for CLANG_TOOLSET on windows
1 parent 252711e commit 1f99e93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

win32/build/confutils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,11 @@ function toolset_setup_common_cflags()
33193319

33203320
var vc_ver = probe_binary(PATH_PROG('cl', null));
33213321
ADD_FLAG("CFLAGS"," -fms-compatibility -fms-compatibility-version=" + vc_ver + " -fms-extensions");
3322-
}
3322+
3323+
if (CLANGVERS >= 1900 && (TARGET_ARCH === 'x64' || TARGET_ARCH === 'arm64')) {
3324+
AC_DEFINE('HAVE_PRESERVE_NONE', 1, 'Whether the compiler supports __attribute__((preserve_none))');
3325+
}
3326+
}
33233327

33243328
if (!CLANG_TOOLSET) {
33253329
/* clang uses __builtin_*() instead */

0 commit comments

Comments
 (0)