diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-05-02 21:29:39 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-05-02 21:29:39 +0000 |
commit | e6bc20629d6ee51a671b335a4d153a332242fe7b (patch) | |
tree | 772de1d1652dde927bcec6916570920d1f700321 | |
parent | 0f88f76cfe6b2b3d50f4b7bbff48ec683e85fec3 (diff) | |
download | bcm5719-llvm-e6bc20629d6ee51a671b335a4d153a332242fe7b.tar.gz bcm5719-llvm-e6bc20629d6ee51a671b335a4d153a332242fe7b.zip |
Add a rule to get the footprint of binaries and libraries.
llvm-svn: 36650
-rw-r--r-- | llvm/Makefile.rules | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 56373c0edc4..a121fcc657b 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -244,6 +244,11 @@ ifndef REQUIRES_EH CXX.Flags += -fno-exceptions endif +# IF REQUIRES_RTTI=1 is specified then don't disable run-time type id +ifndef REQUIRES_RTTI + CXX.Flags += -fno-rtti +endif + # If DISABLE_ASSERTIONS=1 is specified (make command line or configured), # then disable assertions by defining the appropriate preprocessor symbols. ifdef DISABLE_ASSERTIONS @@ -1730,6 +1735,15 @@ check-line-length: check-for-tabs: @egrep -n ' ' $(Sources) +check-footprint: + @ls -l $(LibDir) | awk '\ + BEGIN { sum = 0; } \ + { sum += $$5; } \ + END { printf("Libraries: %6.3f MBytes\n", sum/(1024.0*1024.0)); }' + @ls -l $(ToolDir) | awk '\ + BEGIN { sum = 0; } \ + { sum += $$5; } \ + END { printf("Programs: %6.3f MBytes\n", sum/(1024.0*1024.0)); }' #------------------------------------------------------------------------ # Print out the directories used for building #------------------------------------------------------------------------ |