<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -TP confuses clang-cl in thinking that .lib files are source files"
href="http://llvm.org/bugs/show_bug.cgi?id=20923">20923</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-TP confuses clang-cl in thinking that .lib files are source files
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ehsan@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ cat test.c
int main() { return 0; }
$ > foo.lib
$ ./bin/clang-cl foo.lib test.c -###
clang version 3.6.0
Target: x86_64-apple-windows-msvc
Thread model: posix
"/Users/ehsan/src/llvm-objdir/bin/clang-3.5" "-cc1" "-triple"
"x86_64-apple-windows-msvc" "-emit-obj" "-mrelax-all" "-disable-free"
"-main-file-name" "test.c" "-mrelocation-model" "pic" "-pic-level" "2"
"-mdisable-fp-elim" "-relaxed-aliasing" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-D_MT"
"--dependent-lib=libcmt" "--dependent-lib=oldnames" "-fdiagnostics-format"
"msvc" "-dwarf-column-info" "-resource-dir"
"/Users/ehsan/src/llvm-objdir/bin/../lib/clang/3.6.0" "-internal-isystem"
"/Users/ehsan/src/llvm-objdir/bin/../lib/clang/3.6.0/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio 10.0/VC/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio 9.0/VC/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio
9.0/VC/PlatformSDK/Include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/PlatformSDK/Include" "-fdebug-compilation-dir"
"/Users/ehsan/src/llvm-objdir" "-ferror-limit" "19" "-fmessage-length" "180"
"-mstackrealign" "-fms-extensions" "-fms-compatibility"
"-fms-compatibility-version=17.00" "-fdelayed-template-parsing"
"-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-o"
"/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/test-4b5926.obj" "-x" "c"
"test.c"
"link.exe" "-out:foo.exe" "-nologo" "foo.lib"
"/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/test-4b5926.obj"
$ ./bin/clang-cl -TP foo.lib test.c -###
clang version 3.6.0
Target: x86_64-apple-windows-msvc
Thread model: posix
"/Users/ehsan/src/llvm-objdir/bin/clang-3.5" "-cc1" "-triple"
"x86_64-apple-windows-msvc" "-emit-obj" "-mrelax-all" "-disable-free"
"-main-file-name" "foo.lib" "-mrelocation-model" "pic" "-pic-level" "2"
"-mdisable-fp-elim" "-relaxed-aliasing" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-D_MT"
"--dependent-lib=libcmt" "--dependent-lib=oldnames" "-fdiagnostics-format"
"msvc" "-dwarf-column-info" "-resource-dir"
"/Users/ehsan/src/llvm-objdir/bin/../lib/clang/3.6.0" "-internal-isystem"
"/Users/ehsan/src/llvm-objdir/bin/../lib/clang/3.6.0/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio 10.0/VC/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio 9.0/VC/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio
9.0/VC/PlatformSDK/Include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/PlatformSDK/Include" "-std=c++11" "-fdeprecated-macro"
"-fdebug-compilation-dir" "/Users/ehsan/src/llvm-objdir" "-ferror-limit" "19"
"-fmessage-length" "180" "-mstackrealign" "-fms-extensions"
"-fms-compatibility" "-fms-compatibility-version=17.00"
"-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-o"
"/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/foo-efd206.obj" "-x" "c++"
"foo.lib"
"/Users/ehsan/src/llvm-objdir/bin/clang-3.5" "-cc1" "-triple"
"x86_64-apple-windows-msvc" "-emit-obj" "-mrelax-all" "-disable-free"
"-main-file-name" "test.c" "-mrelocation-model" "pic" "-pic-level" "2"
"-mdisable-fp-elim" "-relaxed-aliasing" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-D_MT"
"--dependent-lib=libcmt" "--dependent-lib=oldnames" "-fdiagnostics-format"
"msvc" "-dwarf-column-info" "-resource-dir"
"/Users/ehsan/src/llvm-objdir/bin/../lib/clang/3.6.0" "-internal-isystem"
"/Users/ehsan/src/llvm-objdir/bin/../lib/clang/3.6.0/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio 10.0/VC/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio 9.0/VC/include"
"-internal-isystem" "C:/Program Files/Microsoft Visual Studio
9.0/VC/PlatformSDK/Include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/include" "-internal-isystem" "C:/Program Files/Microsoft
Visual Studio 8/VC/PlatformSDK/Include" "-std=c++11" "-fdeprecated-macro"
"-fdebug-compilation-dir" "/Users/ehsan/src/llvm-objdir" "-ferror-limit" "19"
"-fmessage-length" "180" "-mstackrealign" "-fms-extensions"
"-fms-compatibility" "-fms-compatibility-version=17.00"
"-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-o"
"/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/test-973ffa.obj" "-x" "c++"
"test.c"
"link.exe" "-out:foo.exe" "-nologo"
"/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/foo-efd206.obj"
"/var/folders/ry/m4kkhrl17c76cqyfd5qv5sph0000gn/T/test-973ffa.obj"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>