diff options
author | Martin Storsjö <martin@martin.st> | 2020-02-04 22:51:06 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-10-20 19:44:21 +0300 |
commit | b30e42922aeaeb70efbfcf7c2132dae21239a023 (patch) | |
tree | 68e5711a6bf9050f704cbd2bb967d895cd37d865 /clang/lib/Basic/SourceManager.cpp | |
parent | 38b632c16e0fdfd5f5a69bcfd4aecf6f69ea0186 (diff) | |
download | llvm-b30e42922aeaeb70efbfcf7c2132dae21239a023.zip llvm-b30e42922aeaeb70efbfcf7c2132dae21239a023.tar.gz llvm-b30e42922aeaeb70efbfcf7c2132dae21239a023.tar.bz2 |
[libcxx] [test] Avoid conflicting definitions of _CRT_SECURE_NO_WARNINGS
This is defined both by libcxx/utils/libcxx/test/config.py (for
any windows target) and msvc_stdlib_force_include.h (when testing
specifically the MSVC C++ library).
The command line define (-D_CRT_SECURE_NO_WARNINGS) defines it to the
value 1; change the header define to match that.
Keeping both instances, to keep the fix for cases when not building
in cases that don't use config.py.
Also remove a comment about whether this can be removed; it can't at
least be removed altogether - doing that breaks a number of tests that
otherwise succeed.
Differential Revision: https://reviews.llvm.org/D89588
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions