[cfe-commits] r65504 - in /cfe/trunk/Driver: Driver.map Makefile

Chris Lattner clattner at apple.com
Wed Feb 25 22:35:53 PST 2009


On Feb 25, 2009, at 10:29 PM, Owen Anderson wrote:

> Author: resistor
> Date: Thu Feb 26 00:29:54 2009
> New Revision: 65504
>
> URL: http://llvm.org/viewvc/llvm-project?rev=65504&view=rev
> Log:
> Add an export map for clang on Linux.

Thanks Owen!

Neil, can you try this out on your machine to see if it a) works with  
your linker and b) speeds up clang for you?  You'll have to change  
clang/Driver/Makefile to enable this unconditionally.

-Chris



>
>
> Added:
>    cfe/trunk/Driver/Driver.map
> Modified:
>    cfe/trunk/Driver/Makefile
>
> Added: cfe/trunk/Driver/Driver.map
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Driver.map?rev=65504&view=auto
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/Driver/Driver.map (added)
> +++ cfe/trunk/Driver/Driver.map Thu Feb 26 00:29:54 2009
> @@ -0,0 +1,4 @@
> +{
> +	global: main;
> +	local: *;
> +};
>
> Modified: cfe/trunk/Driver/Makefile
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Makefile?rev=65504&r1=65503&r2=65504&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/Driver/Makefile (original)
> +++ cfe/trunk/Driver/Makefile Thu Feb 26 00:29:54 2009
> @@ -14,6 +14,10 @@
> LD.Flags += -Wl,-exported_symbol -Wl,_main
> endif
>
> +ifeq ($(OS),Linux)
> +LD.Flags += -Wl,--version-script=Driver.map
> +endif
> +
> LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen  
> ipo selectiondag
> USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a	\
>            clangDriver.a clangAST.a clangParse.a clangLex.a		\
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list