================ @@ -4063,6 +4063,11 @@ defm threadsafe_statics : BoolFOption<"threadsafe-statics", NegFlag<SetFalse, [], [ClangOption, CC1Option], "Do not emit code to make initialization of local statics thread safe">, PosFlag<SetTrue>>; +defm tls_guards : BoolFOption<"tls-guards", + LangOpts<"TlsGuards">, DefaultTrue, ---------------- momo5502 wrote:
Ah I see :D i have never added an option before. I removed it as a clang option and renamed it to `-fms-tls-guards` (& `-fno-ms-tls-guards`). It applies to all tls variables in general, whether they are defined inside a function or not should not be relevant, from what I understand from Microsoft's documentation https://github.com/llvm/llvm-project/pull/113830 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits