mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
be70df8ffb
* language specification files are no longer configured with "configure" * add substitutions for %bindir%, %libdir%, and various llvmgcc related variables needed in the c and cpp spec files. * Implement the stubstituions in the Compiler Driver. * Move st.in to projects/Stacker/tools/stkrc where it belongs. llvm-svn: 22128
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
# C++ configuration file for llvmc
|
|
|
|
##########################################################
|
|
# Language definitions
|
|
##########################################################
|
|
lang.name=C++
|
|
lang.opt1=-O1
|
|
lang.opt2=-O2
|
|
lang.opt3=-O3
|
|
lang.opt4=-O3
|
|
lang.opt5=-O3
|
|
lang.libs=%llvmgccdir%/lib %llvmgccdir%/lib \
|
|
%llvmgccdir%/lib/gcc/%llvmgccarch%
|
|
|
|
##########################################################
|
|
# Pre-processor definitions
|
|
##########################################################
|
|
|
|
# We use g++ as our pre-processor
|
|
preprocessor.command=g++ -E %in% -o %out% %incls% %defs%
|
|
preprocessor.required=true
|
|
|
|
##########################################################
|
|
# Translator definitions
|
|
##########################################################
|
|
|
|
# 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
|
|
|
|
# llvm-g++ does not pre-process
|
|
translator.preprocesses=false
|
|
|
|
# The translator is required to run.
|
|
translator.required=true
|
|
|
|
# Output of translator is assembly
|
|
translator.output=assembly
|
|
|
|
##########################################################
|
|
# Optimizer definitions
|
|
##########################################################
|
|
|
|
# Use gccas to clean up the generated code
|
|
optimizer.command=%bindir%/gccas %in% -o %out% %args%
|
|
optimizer.required = true
|
|
|
|
# gccas doesn't translate
|
|
optimizer.translates = false
|
|
|
|
# gccas doesn't preprocess
|
|
optimizer.preprocesses=false
|
|
|
|
# gccas produces bytecode
|
|
optimizer.output = bytecode
|
|
|
|
##########################################################
|
|
# Assembler definitions
|
|
##########################################################
|
|
assembler.command=%bindir%/llc %in% -o %out% %target% %time% %stats%
|