<div dir="ltr">Hi Alexey,<div><br></div><div style>Ancient history, I know, but can explain your motivation for this patch?</div><div style><br></div><div style>I'm asking because this implicitly removes all knowledge of the atomic functions from the Make based build system, so platform specific libraries can't currently opt-in to including the atomic functionality.</div>
<div style><br></div><div style>I can invent a new feature that allows the builtin module to exclude certain functions from the "CommonFunctions" list, but I'd like to avoid inventing that unless it is really necessary.</div>
<div style><br></div><div style> - Daniel</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 2:43 AM, Alexey Samsonov <span dir="ltr"><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: samsonov<br>
Date: Thu Apr 12 04:43:57 2012<br>
New Revision: 154583<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=154583&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=154583&view=rev</a><br>
Log:<br>
Don't build atomic.c when building compiler-rt using make<br>
<br>
Modified:<br>
    compiler-rt/trunk/lib/Makefile.mk<br>
<br>
Modified: compiler-rt/trunk/lib/Makefile.mk<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/Makefile.mk?rev=154583&r1=154582&r2=154583&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/Makefile.mk?rev=154583&r1=154582&r2=154583&view=diff</a><br>

==============================================================================<br>
--- compiler-rt/trunk/lib/Makefile.mk (original)<br>
+++ compiler-rt/trunk/lib/Makefile.mk Thu Apr 12 04:43:57 2012<br>
@@ -17,8 +17,13 @@<br>
 SubDirs += asan<br>
 SubDirs += profile<br>
<br>
+# FIXME: We don't currently support building an atomic library, and as it must<br>
+# be a separate library from the runtime library, we need to remove its source<br>
+# code from the source files list.<br>
+ExcludedSources := atomic.c<br>
+<br>
 # Define the variables for this specific directory.<br>
-Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))<br>
+Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(filter-out $(ExcludedSources),$(notdir $(file))))<br>
 ObjNames := $(Sources:%.c=%.o)<br>
 Implementation := Generic<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>