[llvm-commits] [compiler-rt] r154583 - /compiler-rt/trunk/lib/Makefile.mk

Daniel Dunbar daniel at zuster.org
Mon May 20 14:31:00 PDT 2013


Hi Alexey,

Ancient history, I know, but can explain your motivation for this patch?

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.

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.

 - Daniel



On Thu, Apr 12, 2012 at 2:43 AM, Alexey Samsonov <samsonov at google.com>wrote:

> Author: samsonov
> Date: Thu Apr 12 04:43:57 2012
> New Revision: 154583
>
> URL: http://llvm.org/viewvc/llvm-project?rev=154583&view=rev
> Log:
> Don't build atomic.c when building compiler-rt using make
>
> Modified:
>     compiler-rt/trunk/lib/Makefile.mk
>
> Modified: compiler-rt/trunk/lib/Makefile.mk
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/Makefile.mk?rev=154583&r1=154582&r2=154583&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/Makefile.mk (original)
> +++ compiler-rt/trunk/lib/Makefile.mk Thu Apr 12 04:43:57 2012
> @@ -17,8 +17,13 @@
>  SubDirs += asan
>  SubDirs += profile
>
> +# FIXME: We don't currently support building an atomic library, and as it
> must
> +# be a separate library from the runtime library, we need to remove its
> source
> +# code from the source files list.
> +ExcludedSources := atomic.c
> +
>  # Define the variables for this specific directory.
> -Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
> +Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(filter-out
> $(ExcludedSources),$(notdir $(file))))
>  ObjNames := $(Sources:%.c=%.o)
>  Implementation := Generic
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130520/3da256d8/attachment.html>


More information about the llvm-commits mailing list