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

            Bug ID: 38993
           Summary: clang-cl: /clr is not supported, and not forwarded
                    with /fallback
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangb...@nondot.org
          Reporter: kpreis...@gmail.com
                CC: llvm-bugs@lists.llvm.org

I have some source files in my project using C++/CX, so they are compiled with
the cl.exe flag "/clr". Clang does not support this flag. I then read about the
/fallback option for clang-cl and tried it, expecting that all the flags are
passed to the MSVC cl.exe. However, /clr is not passed, so the fallback cl.exe
complains "fatal error C1190: managed targeted code requires a '/clr' option"

Using Process Monitor, I looked into the cl.exe invocation that clang-cl.exe
makes, and found the following differences in passed options (although I'm not
sure which of these are actually unproblematic because they match the default
options):
- The original clang-cl invocation had /showIncludes /GR /Gy /J /MD /nologo /W3
/TP /clr /Gm- /Zi /GF /Od /c
- The fallback cl invocation has /nologo /c /W0 /Od /GF /Gy /Z7 /MD /Tp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to