[llvm-commits] CVS: llvm/Makefile.rules
Reid Spencer
reid at x10sys.com
Wed May 2 14:29:57 PDT 2007
Changes in directory llvm:
Makefile.rules updated: 1.432 -> 1.433
---
Log message:
Add a rule to get the footprint of binaries and libraries.
---
Diffs of the changes: (+14 -0)
Makefile.rules | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.432 llvm/Makefile.rules:1.433
--- llvm/Makefile.rules:1.432 Mon Apr 16 13:10:22 2007
+++ llvm/Makefile.rules Wed May 2 16:29:39 2007
@@ -244,6 +244,11 @@
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-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
#------------------------------------------------------------------------
More information about the llvm-commits
mailing list