<html>
<head>
<base href="https://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 --- - CMake build should support a host with CLT Command Line Tools installed but not Xcode"
href="https://llvm.org/bugs/show_bug.cgi?id=23162">23162</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>CMake build should support a host with CLT Command Line Tools installed but not Xcode
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jonathan+llvm@pinacea.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>Created <span class=""><a href="attachment.cgi?id=14169" name="attach_14169" title="Patch CMakeLists.txt test exit code of xcodebuild">attachment 14169</a> <a href="attachment.cgi?id=14169&action=edit" title="Patch CMakeLists.txt test exit code of xcodebuild">[details]</a></span>
Patch CMakeLists.txt test exit code of xcodebuild
When you run Cmake to configure 'compiler-rt' it issues a few commands with
xcodebuild to detect the SDK Path.
But when Xcode is not installed xcodebuild / xcrun / ... doesn't return an
empty string but instead a message "Error: ....." which obviously isn't a valid
answer and path
The patch attached solve this issue by checking the return/exit code of
xcodebuild and in that case change the path content to an empty string.</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>