Skip to content

Commit f0f3ba7

Browse files
committed
add HAVE_PRESERVE_NONE for CLANG_TOOLSET on windows
1 parent fb74a49 commit f0f3ba7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

win32/build/confutils.js

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

33773377
var vc_ver = probe_binary(PATH_PROG('cl', null));
33783378
ADD_FLAG("CFLAGS"," -fms-compatibility -fms-compatibility-version=" + vc_ver + " -fms-extensions");
3379-
}
3379+
3380+
if (CLANGVERS >= 1900 && (TARGET_ARCH === 'x64' || TARGET_ARCH === 'arm64')) {
3381+
AC_DEFINE('HAVE_PRESERVE_NONE', 1, 'Whether the compiler supports __attribute__((preserve_none))');
3382+
}
3383+
}
33803384

33813385
if (!CLANG_TOOLSET) {
33823386
/* clang uses __builtin_*() instead */

0 commit comments

Comments
 (0)