[LLVMbugs] [Bug 22697] New: clang -target i386-pc-win32: missing support for option "-shared"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 25 07:09:47 PST 2015


            Bug ID: 22697
           Summary: clang -target i386-pc-win32: missing support for
                    option "-shared"
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: markus at oberhumer.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

visualstudio::Link::ConstructJob() in Tools.cpp should translate
"-shared" into "-dll" for link.exe, much like it does for OPT__SLASH_LD.

$ touch x.c

$ clang-3.6.0rc4 -target i386-pc-win32 -v -shared -o x.dll x.c
clang version 3.6.0 (tags/RELEASE_360/rc4)
Target: i386-pc-windows-msvc
Thread model: posix
clang: warning: argument unused during compilation: '-shared'


"link.exe" -out:x.dll -defaultlib:libcmt -nologo /tmp/x-950d94.o

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/20150225/31aeabe7/attachment.html>

More information about the llvm-bugs mailing list