Clean up and correct llvmc configurations for C and C++
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 3 May 2005 06:13:18 +0000 (06:13 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 3 May 2005 06:13:18 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21667 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/c.in
tools/llvmc/cpp.in
tools/llvmc/st.in

index 2bfd84d0aa60882a7d6c305109d05a911e2dd359..d1d151c9c8c1574dd6e29751bc3cb01d28b9d70d 100644 (file)
@@ -1,4 +1,4 @@
-# Stacker Configuration File For llvmc
+# C configuration file for llvmc
 
 ##########################################################
 # Language definitions
 # Pre-processor definitions
 ##########################################################
 
-  # Stacker doesn't have a preprocessor but the following
-  # allows the -E option to be supported
-  preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
-  preprocessor.required=false
+  # We use gcc as our pre-processor
+  preprocessor.command=gcc -E %in% -o %out% %incls% %defs%
+  preprocessor.required=true
 
 ##########################################################
 # Translator definitions
 ##########################################################
 
-  # To compile stacker source, we just run the stacker
-  # compiler with a default stack size of 2048 entries.
+  # To compile C source, just use llvm-gcc's cc1
   translator.command=@LLVMCC1@ -quiet %in% -o %out% \
     %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
     -D_GNU_SOURCE
 
-  # stkrc doesn't preprocess but we set this to true so
-  # that we don't run the cp command by default.
-  translator.preprocesses=true
+  # llvm-gcc does not pre-process
+  translator.preprocesses=false
 
   # The translator is required to run.
   translator.required=true
 # Optimizer definitions
 ##########################################################
   
-  # For optimization, we use the LLVM "opt" program
+  # Use gccas to clean up the generated code
   optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
-
   optimizer.required = true
 
-  # opt doesn't translate
+  # gccas doesn't translate
   optimizer.translates = false
 
-  # opt doesn't preprocess
+  # gccas doesn't preprocess
   optimizer.preprocesses=false
 
-  # opt produces bytecode
+  # gccas produces bytecode
   optimizer.output = bytecode
 
 ##########################################################
index f4086e26eeec463049e95a66b84f87f745fab836..a065f9c3bc116503f6939a7330422ab74827e6ad 100644 (file)
@@ -1,4 +1,4 @@
-# Stacker Configuration File For llvmc
+# C++ configuration file for llvmc
 
 ##########################################################
 # Language definitions
 # Pre-processor definitions
 ##########################################################
 
-  # Stacker doesn't have a preprocessor but the following
-  # allows the -E option to be supported
+  # We use g++ as our pre-processor
   preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
-  preprocessor.required=false
+  preprocessor.required=true
 
 ##########################################################
 # Translator definitions
 ##########################################################
 
-  # To compile stacker source, we just run the stacker
-  # compiler with a default stack size of 2048 entries.
+  # To compile C++ source, just use llvm-g++'s cc1
   translator.command=@LLVMCC1PLUS@ -quiet %in% -o %out% \
     %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
     -D_GNU_SOURCE
 
-  # stkrc doesn't preprocess but we set this to true so
-  # that we don't run the cp command by default.
-  translator.preprocesses=true
+  # llvm-g++ does not pre-process
+  translator.preprocesses=false
 
   # The translator is required to run.
   translator.required=true
 
-  # stkrc doesn't handle the -On options
+  # Output of translator is assembly
   translator.output=assembly
 
 ##########################################################
 # Optimizer definitions
 ##########################################################
   
-  # For optimization, we use the LLVM "opt" program
+  # Use gccas to clean up the generated code
   optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
-
   optimizer.required = true
 
-  # opt doesn't translate
+  # gccas doesn't translate
   optimizer.translates = false
 
-  # opt doesn't preprocess
+  # gccas doesn't preprocess
   optimizer.preprocesses=false
 
-  # opt produces bytecode
+  # gccas produces bytecode
   optimizer.output = bytecode
 
 ##########################################################
 # Assembler definitions
 ##########################################################
-  assembler.command=llc %in% -o %out% %target% %time% %stats%
+  assembler.command=@LLVM_BINDIR@/llc %in% -o %out% %target% %time% %stats%
index 0f66ddb1692add5d04e96ce1bcbe255de9673011..7bb324ee3c6c85fe205abe40890d5ce82939612e 100644 (file)
@@ -1,4 +1,4 @@
-# Stacker Configuration File For llvmc
+# Stacker configuration file for llvmc
 
 ##########################################################
 # Language definitions