[PATCH] D127641: [clang-cl][MSVC] Add default /Zc conformance arguments
Stephen Long via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 07:51:34 PDT 2022
steplong added reviewers: rnk, hans, thakis.
steplong added a comment.
I'm not sure how to check for `/std:` at this stage to turn on arguments like `/Zc:alignedNew`
================
Comment at: clang/test/Driver/cl-zc.cpp:98
// thread safe statics are off for versions < 19.
// RUN: %clang_cl /c -### -fms-compatibility-version=18 -- %s 2>&1 | FileCheck -check-prefix=NoThreadSafeStatics %s
// RUN: %clang_cl /Zc:threadSafeInit /Zc:threadSafeInit- /c -### -- %s 2>&1 | FileCheck -check-prefix=NoThreadSafeStatics %s
----------------
This line will fail, but I can't find any documentation on thread safe statics being off for versions < 19. https://docs.microsoft.com/en-us/cpp/build/reference/zc-threadsafeinit-thread-safe-local-static-initialization?view=msvc-170 says Visual Studio 2015 implements this by default.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127641/new/
https://reviews.llvm.org/D127641
More information about the cfe-commits
mailing list