<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Lacking support of output directory when compiling multiple source file"
href="https://bugs.llvm.org/show_bug.cgi?id=44444">44444</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Lacking support of output directory when compiling multiple source file
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>or.kunst@incredibuild.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Even though clang supports multiple source files as input, it does not allow
specifying an output directory, where to locate the generated object files,
meaning it forces the user to put it in current directory.
For example, in case of building a project that consists of 3 source files:
1.cpp, 2.cpp, 3.cpp, and wishing to put the generated object file in a specific
directory, forces you the call each clang process individually with its source
and output file name:
- clang.exe -g -o ".\myproj\debug\1.obj" 1.cpp
- clang.exe -g -o ".\myproj\debug\2.obj" 2.cpp
- clang.exe -g -o ".\myproj\debug\3.obj" 3.cpp
A better solution (in my humble opinion) is to call clang once, with all input
files, specifying the directory where to save the output files:
- clang.exe -g -o ".\myproj\debug" 1.cpp 2.cpp 3.cpp
I'm aware that under Linux everything is considered as file, therefor
specifying output directory might be mistakenly considered as an output file,
but i'm sure there's a good way to workaround that.</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>