<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"

	>
<channel>
	<title>
	Comments on: ToT Clang / LLVM in Xcode	</title>
	<atom:link href="https://wadetregaskis.com/tot-clang-llvm-in-xcode/feed/" rel="self" type="application/rss+xml" />
	<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/</link>
	<description></description>
	<lastBuildDate>Tue, 02 Jan 2024 04:33:18 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Yuriy		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-508</link>

		<dc:creator><![CDATA[Yuriy]]></dc:creator>
		<pubDate>Wed, 21 May 2014 15:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-508</guid>

					<description><![CDATA[Just thank you. I succeeded Mac OS 10.9 / XCode 5.1.1]]></description>
			<content:encoded><![CDATA[<p>Just thank you. I succeeded Mac OS 10.9 / XCode 5.1.1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nisim		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-330</link>

		<dc:creator><![CDATA[Nisim]]></dc:creator>
		<pubDate>Mon, 05 Aug 2013 13:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-330</guid>

					<description><![CDATA[for LLVM 3.3 release use the following:

https://web.archive.org/web/20140801003514/https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_33/final
https://web.archive.org/web/20140908133202/http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_33/final/
https://github.com/llvm/llvm-project/tree/llvmorg-3.3.0/compiler-rt
https://github.com/llvm/llvm-project/tree/llvmorg-3.3.0/libcxx]]></description>
			<content:encoded><![CDATA[<p>for LLVM 3.3 release use the following:</p>
<p><a href="https://web.archive.org/web/20140801003514/https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_33/final" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://web.archive.org/web/20140801003514/https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_33/final</a><br />
<a href="https://web.archive.org/web/20140908133202/http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_33/final/" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://web.archive.org/web/20140908133202/http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_33/final/</a><br />
<a href="https://github.com/llvm/llvm-project/tree/llvmorg-3.3.0/compiler-rt" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://github.com/llvm/llvm-project/tree/llvmorg-3.3.0/compiler-rt</a><br />
<a href="https://github.com/llvm/llvm-project/tree/llvmorg-3.3.0/libcxx" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://github.com/llvm/llvm-project/tree/llvmorg-3.3.0/libcxx</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: burt0n		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-272</link>

		<dc:creator><![CDATA[burt0n]]></dc:creator>
		<pubDate>Mon, 10 Jun 2013 08:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-272</guid>

					<description><![CDATA[XCode 4.6.2 (OS X 10.8.4) correctly recognizes my locally installed clang, but in case of errors it fails in displaying the error line(s). The only output available is &#039;Command /usr/local/bin/clang failed with exit code 1&#039; along with the output resulting from the compilation attempt. 

How can I instruct XCode so as to highlight the error line(s) as if I were using the built-in clang? Thanks.]]></description>
			<content:encoded><![CDATA[<p>XCode 4.6.2 (OS X 10.8.4) correctly recognizes my locally installed clang, but in case of errors it fails in displaying the error line(s). The only output available is &#8216;Command /usr/local/bin/clang failed with exit code 1&#8217; along with the output resulting from the compilation attempt. </p>
<p>How can I instruct XCode so as to highlight the error line(s) as if I were using the built-in clang? Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: James Walker		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-149</link>

		<dc:creator><![CDATA[James Walker]]></dc:creator>
		<pubDate>Fri, 15 Mar 2013 22:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-149</guid>

					<description><![CDATA[Using libc++ and -fsanitize=undefined, i386 architecture, I get link errors on 4 missing symbols:

&lt;code&gt;
typeinfo for __cxxabiv1::__class_type_info
typeinfo for __cxxabiv1::__si_class_type_info
typeinfo for __cxxabiv1::__vmi_class_type_info
typeinfo for std::type_info
&lt;/code&gt;

Any idea what I&#039;m missing?]]></description>
			<content:encoded><![CDATA[<p>Using libc++ and -fsanitize=undefined, i386 architecture, I get link errors on 4 missing symbols:</p>
<p><code><br />
typeinfo for __cxxabiv1::__class_type_info<br />
typeinfo for __cxxabiv1::__si_class_type_info<br />
typeinfo for __cxxabiv1::__vmi_class_type_info<br />
typeinfo for std::type_info<br />
</code></p>
<p>Any idea what I&#8217;m missing?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brad		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-148</link>

		<dc:creator><![CDATA[Brad]]></dc:creator>
		<pubDate>Thu, 14 Mar 2013 19:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-148</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-147&quot;&gt;Jean-Daniel&lt;/a&gt;.

Thanks @Jean-Daniel -- yes I eventually figured that out, and got everything to work.  Forgot to make a note of it here.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-147" data-wpel-link="internal">Jean-Daniel</a>.</p>
<p>Thanks @Jean-Daniel &#8212; yes I eventually figured that out, and got everything to work.  Forgot to make a note of it here.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jean-Daniel		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-147</link>

		<dc:creator><![CDATA[Jean-Daniel]]></dc:creator>
		<pubDate>Thu, 14 Mar 2013 18:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-147</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-131&quot;&gt;Brad&lt;/a&gt;.

@Brad: You need to also include libc++ headers in your clang build.

Before building just do an other checkout in projects (next to compiler-rt):

svn co https://web.archive.org/web/20140726061724/http://llvm.org/svn/llvm-project/libcxx/trunk/ libcxx

The &quot;make install&quot; step with then copy the libcxx header where needed.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-131" data-wpel-link="internal">Brad</a>.</p>
<p>@Brad: You need to also include libc++ headers in your clang build.</p>
<p>Before building just do an other checkout in projects (next to compiler-rt):</p>
<p>svn co <a href="https://web.archive.org/web/20140726061724/http://llvm.org/svn/llvm-project/libcxx/trunk/" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://web.archive.org/web/20140726061724/http://llvm.org/svn/llvm-project/libcxx/trunk/</a> libcxx</p>
<p>The &#8220;make install&#8221; step with then copy the libcxx header where needed.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brad		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-131</link>

		<dc:creator><![CDATA[Brad]]></dc:creator>
		<pubDate>Mon, 25 Feb 2013 14:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-131</guid>

					<description><![CDATA[PS. The library headers that are missing are for cmath, complex, and iostream (the angular brackets were edited out in my first comment).]]></description>
			<content:encoded><![CDATA[<p>PS. The library headers that are missing are for cmath, complex, and iostream (the angular brackets were edited out in my first comment).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Brad		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-130</link>

		<dc:creator><![CDATA[Brad]]></dc:creator>
		<pubDate>Mon, 25 Feb 2013 13:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-130</guid>

					<description><![CDATA[Setting CC=/path/to/clang in an .xcconfig file works well for me too, but clang (llvm 3.3 svn) isn&#039;t able to find the , , or  library headers in my code.  [This is true for the released version of clang (llvm 3.2) as well.]  The Apple-supplied version of clang (Xcode installed command-line tool), by contrast, finds the header files.  (I&#039;m running OS X 10.8.2).

Does anyone know how to show clang where these header files are located?]]></description>
			<content:encoded><![CDATA[<p>Setting CC=/path/to/clang in an .xcconfig file works well for me too, but clang (llvm 3.3 svn) isn&#8217;t able to find the , , or  library headers in my code.  [This is true for the released version of clang (llvm 3.2) as well.]  The Apple-supplied version of clang (Xcode installed command-line tool), by contrast, finds the header files.  (I&#8217;m running OS X 10.8.2).</p>
<p>Does anyone know how to show clang where these header files are located?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sean		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-53</link>

		<dc:creator><![CDATA[Sean]]></dc:creator>
		<pubDate>Fri, 31 Aug 2012 20:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-53</guid>

					<description><![CDATA[Gus&#039; suggestion works great for me.  I set CC=/path/to/clang in my .xcconfig file and presto!  I still have to copy the &#039;arc&#039; folder as the article describes. After that I got other link errors though:

Undefined symbols for architecture x86_64:
  &quot;_llvm_gcda_emit_arcs&quot;, referenced from:
  &quot;_llvm_gcda_emit_function&quot;, referenced from:
  &quot;_llvm_gcda_end_file&quot;, referenced from:
  &quot;_llvm_gcda_start_file&quot;, referenced from:

Which I fixed by temporarily disabling code coverage (GCC_INSTRUMENT_PROGRAM_FLOW_ARCS, GCC_GENERATE_TEST_COVERAGE_FILES).]]></description>
			<content:encoded><![CDATA[<p>Gus&#8217; suggestion works great for me.  I set CC=/path/to/clang in my .xcconfig file and presto!  I still have to copy the &#8216;arc&#8217; folder as the article describes. After that I got other link errors though:</p>
<p>Undefined symbols for architecture x86_64:<br />
  &#8220;_llvm_gcda_emit_arcs&#8221;, referenced from:<br />
  &#8220;_llvm_gcda_emit_function&#8221;, referenced from:<br />
  &#8220;_llvm_gcda_end_file&#8221;, referenced from:<br />
  &#8220;_llvm_gcda_start_file&#8221;, referenced from:</p>
<p>Which I fixed by temporarily disabling code coverage (GCC_INSTRUMENT_PROGRAM_FLOW_ARCS, GCC_GENERATE_TEST_COVERAGE_FILES).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JayZ		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-45</link>

		<dc:creator><![CDATA[JayZ]]></dc:creator>
		<pubDate>Sun, 08 Jul 2012 16:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-45</guid>

					<description><![CDATA[It seems I can&#039;t get this to work... I followed your instructions and edited only the paths ans nothing else (for troubleshooting) in the .xcspec file to &quot;/Users/JayZ/usr/bin/clang&quot; and, since I am using XCode 4.2, copied the xcplugin to /Developer/Library/Xcode/Plug-ins. Unfortunately I fail to be able to choose the compiler within XCode. I am using Snow Leopard. Any help appreciated ;)]]></description>
			<content:encoded><![CDATA[<p>It seems I can&#8217;t get this to work&#8230; I followed your instructions and edited only the paths ans nothing else (for troubleshooting) in the .xcspec file to &#8220;/Users/JayZ/usr/bin/clang&#8221; and, since I am using XCode 4.2, copied the xcplugin to /Developer/Library/Xcode/Plug-ins. Unfortunately I fail to be able to choose the compiler within XCode. I am using Snow Leopard. Any help appreciated ;)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Flash Sheridan		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-36</link>

		<dc:creator><![CDATA[Flash Sheridan]]></dc:creator>
		<pubDate>Thu, 24 May 2012 19:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-36</guid>

					<description><![CDATA[You can also try to use a different version of the static analyzer via the Python script &lt;code&gt;set-xcode-analyzer&lt;/code&gt; bundled with the releases at https://clang-analyzer.llvm.org/installation.  But note that this may depend on the version(s) of Python you’ve got installed:  https://bugs.llvm.org/show_bug.cgi?id=11661]]></description>
			<content:encoded><![CDATA[<p>You can also try to use a different version of the static analyzer via the Python script <code>set-xcode-analyzer</code> bundled with the releases at <a href="https://clang-analyzer.llvm.org/installation" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://clang-analyzer.llvm.org/installation</a>.  But note that this may depend on the version(s) of Python you’ve got installed:  <a href="https://bugs.llvm.org/show_bug.cgi?id=11661" rel="nofollow ugc external noopener" data-wpel-link="external" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=11661</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gus Mueller		</title>
		<link>https://wadetregaskis.com/tot-clang-llvm-in-xcode/#comment-17</link>

		<dc:creator><![CDATA[Gus Mueller]]></dc:creator>
		<pubDate>Sun, 13 May 2012 03:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wadetregaskis.com/?p=2417#comment-17</guid>

					<description><![CDATA[Just as an aside, I&#039;ve found that adding a user defined setting of &quot;CC&quot; equal to /opt/bin/clang is preferable to using the plugin.  Just change your build script to use:
./configure --prefix=/opt --enable-optimized

You&#039;ll even be able to use the latest static analyzer as well.]]></description>
			<content:encoded><![CDATA[<p>Just as an aside, I&#8217;ve found that adding a user defined setting of &#8220;CC&#8221; equal to /opt/bin/clang is preferable to using the plugin.  Just change your build script to use:<br />
./configure &#8211;prefix=/opt &#8211;enable-optimized</p>
<p>You&#8217;ll even be able to use the latest static analyzer as well.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
