[llvm-bugs] [Bug 30948] New: clang-cl does not pass -Zc:threadSafeInit- to the fallback compiler

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 8 10:34:07 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=30948

            Bug ID: 30948
           Summary: clang-cl does not pass -Zc:threadSafeInit- to the
                    fallback compiler
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dmajor at mozilla.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I used gflags to catch cl.exe in a debugger, and I didn't see
-Zc:threadSafeInit- in its command line.

$ cat foo.cpp
#if defined(__clang__)
#error Try again
#endif

$ clang-cl -c -fallback -Zc:threadSafeInit- foo.cpp
foo.cpp(2,2):  error(clang): Try again
#error Try again
 ^
1 error generated.
clang-cl.exe: warning: falling back to C:\Program Files (x86)\Microsoft Visual
Studio 14.0\VC\bin\amd64\cl.exe [-Wfallback]
foo.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161108/ac5a3071/attachment.html>


More information about the llvm-bugs mailing list