[libcxx-commits] [PATCH] D89588: [libcxx] [test] Avoid conflicting definitions of _CRT_SECURE_NO_WARNINGS
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 20 09:44:34 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb30e42922aea: [libcxx] [test] Avoid conflicting definitions of _CRT_SECURE_NO_WARNINGS (authored by mstorsjo).
Changed prior to commit:
https://reviews.llvm.org/D89588?vs=298895&id=299392#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89588/new/
https://reviews.llvm.org/D89588
Files:
libcxx/test/support/msvc_stdlib_force_include.h
libcxx/utils/libcxx/test/config.py
Index: libcxx/utils/libcxx/test/config.py
===================================================================
--- libcxx/utils/libcxx/test/config.py
+++ libcxx/utils/libcxx/test/config.py
@@ -272,7 +272,6 @@
compile_flags_str = self.get_lit_conf('compile_flags', '')
self.cxx.compile_flags += shlex.split(compile_flags_str)
if self.target_info.is_windows():
- # FIXME: Can we remove this?
self.cxx.compile_flags += ['-D_CRT_SECURE_NO_WARNINGS']
# Don't warn about using common but nonstandard unprefixed functions
# like chdir, fileno.
Index: libcxx/test/support/msvc_stdlib_force_include.h
===================================================================
--- libcxx/test/support/msvc_stdlib_force_include.h
+++ libcxx/test/support/msvc_stdlib_force_include.h
@@ -14,7 +14,7 @@
#ifndef _LIBCXX_IN_DEVCRT
// Silence warnings about CRT machinery.
- #define _CRT_SECURE_NO_WARNINGS
+ #define _CRT_SECURE_NO_WARNINGS 1
// Avoid assertion dialogs.
#define _CRT_SECURE_INVALID_PARAMETER(EXPR) ::abort()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89588.299392.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201020/9657bc61/attachment.bin>
More information about the libcxx-commits
mailing list