Clean up and correct llvmc configurations for C and C++

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman
2005-05-03 06:13:18 +00:00
parent 3a98ff8d3a
commit e7d52b6b5c
3 changed files with 24 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
# Stacker Configuration File For llvmc # C configuration file for llvmc
########################################################## ##########################################################
# Language definitions # Language definitions
@@ -16,24 +16,21 @@
# Pre-processor definitions # Pre-processor definitions
########################################################## ##########################################################
# Stacker doesn't have a preprocessor but the following # We use gcc as our pre-processor
# allows the -E option to be supported preprocessor.command=gcc -E %in% -o %out% %incls% %defs%
preprocessor.command=g++ -E %in% -o %out% %incls% %defs% preprocessor.required=true
preprocessor.required=false
########################################################## ##########################################################
# Translator definitions # Translator definitions
########################################################## ##########################################################
# To compile stacker source, we just run the stacker # To compile C source, just use llvm-gcc's cc1
# compiler with a default stack size of 2048 entries.
translator.command=@LLVMCC1@ -quiet %in% -o %out% \ translator.command=@LLVMCC1@ -quiet %in% -o %out% \
%opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \ %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
-D_GNU_SOURCE -D_GNU_SOURCE
# stkrc doesn't preprocess but we set this to true so # llvm-gcc does not pre-process
# that we don't run the cp command by default. translator.preprocesses=false
translator.preprocesses=true
# The translator is required to run. # The translator is required to run.
translator.required=true translator.required=true
@@ -45,18 +42,17 @@
# Optimizer definitions # 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.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
optimizer.required = true optimizer.required = true
# opt doesn't translate # gccas doesn't translate
optimizer.translates = false optimizer.translates = false
# opt doesn't preprocess # gccas doesn't preprocess
optimizer.preprocesses=false optimizer.preprocesses=false
# opt produces bytecode # gccas produces bytecode
optimizer.output = bytecode optimizer.output = bytecode
########################################################## ##########################################################

View File

@@ -1,4 +1,4 @@
# Stacker Configuration File For llvmc # C++ configuration file for llvmc
########################################################## ##########################################################
# Language definitions # Language definitions
@@ -16,50 +16,46 @@
# Pre-processor definitions # Pre-processor definitions
########################################################## ##########################################################
# Stacker doesn't have a preprocessor but the following # We use g++ as our pre-processor
# allows the -E option to be supported
preprocessor.command=g++ -E %in% -o %out% %incls% %defs% preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
preprocessor.required=false preprocessor.required=true
########################################################## ##########################################################
# Translator definitions # Translator definitions
########################################################## ##########################################################
# To compile stacker source, we just run the stacker # To compile C++ source, just use llvm-g++'s cc1
# compiler with a default stack size of 2048 entries.
translator.command=@LLVMCC1PLUS@ -quiet %in% -o %out% \ translator.command=@LLVMCC1PLUS@ -quiet %in% -o %out% \
%opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \ %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
-D_GNU_SOURCE -D_GNU_SOURCE
# stkrc doesn't preprocess but we set this to true so # llvm-g++ does not pre-process
# that we don't run the cp command by default. translator.preprocesses=false
translator.preprocesses=true
# The translator is required to run. # The translator is required to run.
translator.required=true translator.required=true
# stkrc doesn't handle the -On options # Output of translator is assembly
translator.output=assembly translator.output=assembly
########################################################## ##########################################################
# Optimizer definitions # 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.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
optimizer.required = true optimizer.required = true
# opt doesn't translate # gccas doesn't translate
optimizer.translates = false optimizer.translates = false
# opt doesn't preprocess # gccas doesn't preprocess
optimizer.preprocesses=false optimizer.preprocesses=false
# opt produces bytecode # gccas produces bytecode
optimizer.output = bytecode optimizer.output = bytecode
########################################################## ##########################################################
# Assembler definitions # Assembler definitions
########################################################## ##########################################################
assembler.command=llc %in% -o %out% %target% %time% %stats% assembler.command=@LLVM_BINDIR@/llc %in% -o %out% %target% %time% %stats%

View File

@@ -1,4 +1,4 @@
# Stacker Configuration File For llvmc # Stacker configuration file for llvmc
########################################################## ##########################################################
# Language definitions # Language definitions