Remove variables that are not used by any of the LLVM makefiles
authorReid Spencer <rspencer@reidspencer.com>
Wed, 8 Dec 2004 04:26:23 +0000 (04:26 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 8 Dec 2004 04:26:23 +0000 (04:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18614 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules
docs/MakefileGuide.html

index a160c02d30b7e548c2300c6047695868453e9a49..f5cfb0a1578109f05c6dcaf752a420badf6edf41 100644 (file)
@@ -146,20 +146,24 @@ install-bytecode:: install-bytecode-local
 # Variables derived from configuration we are building
 #--------------------------------------------------------------------
 
+CommonCXXOpts := -Woverloaded-virtual
+
 ifdef ENABLE_PROFILING
   BuildMode := Profile
-  CXX.Flags := -O3 -DNDEBUG -felide-constructors -finline-functions -pg
+  CXX.Flags := -O3 -DNDEBUG $(CommonCXXOpts) -felide-constructors \
+               -finline-functions -pg
   C.Flags   := -O3 -DNDEBUG -pg
   LD.Flags  := -O3 -DNDEBUG -pg 
 else
   ifdef ENABLE_OPTIMIZED
     BuildMode := Release
-    CXX.Flags  := -O3 -DNDEBUG -finline-functions -felide-constructors -fomit-frame-pointer
+    CXX.Flags  := -O3 -DNDEBUG $(CommonCXXOpts) -finline-functions \
+                  -felide-constructors -fomit-frame-pointer
     C.Flags    := -O3 -DNDEBUG -fomit-frame-pointer
     LD.Flags   := -O3 -DNDEBUG 
   else
     BuildMode := Debug
-    CXX.Flags := -g -D_DEBUG 
+    CXX.Flags := -g -D_DEBUG $(CommonCXXOpts)
     C.Flags   := -g -D_DEBUG
     LD.Flags  := -g -D_DEBUG 
     KEEP_SYMBOLS := 1
@@ -214,10 +218,6 @@ ifndef LLVMGXX
 LLVMGXX  := PATH=$(LLVMToolDir):$(PATH) $(LLVMGCCDIR)/bin/g++
 endif
 
-# Need a better way to compute this.
-LLVMGCCLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libgcc.a))/
-LLVMGCCStdCXXLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libstdc++.a))/
-
 #--------------------------------------------------------------------
 # Adjust to user's request
 #--------------------------------------------------------------------
index 8ba3f2a750fea9fd7f738f6fa2f8b8076f58d16d..42c2b1cea91fd1280930235e60199efaa9d50e2a 100644 (file)
     LibTool.Flags
     Link
     LinkModule
-    LLVMGCCLibDir
-    LLVMGCCStdCXXLibDir
     LLVMLibDir
     LLVMLibsOptions
     LLVMLibsPaths