Generate lit.site.cfg from a .in file, as clang does.
llvm-svn: 82533
This commit is contained in:
parent
1a0a423b38
commit
26a6dfe0b6
|
@ -190,14 +190,11 @@ site.exp: FORCE
|
||||||
|
|
||||||
lit.site.cfg: site.exp
|
lit.site.cfg: site.exp
|
||||||
@echo "Making LLVM 'lit.site.cfg' file..."
|
@echo "Making LLVM 'lit.site.cfg' file..."
|
||||||
@echo "## Autogenerated by Makefile ##" > $@
|
@sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \
|
||||||
@echo "# Do not edit!" >> $@
|
-e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
|
||||||
@echo >> $@
|
-e "s#@LLVM_TOOLS_DIR@#$(ToolDir)#g" \
|
||||||
@echo "# Preserve some key paths for use by main LLVM test suite config." >> $@
|
-e "s#@LLVMGCCDIR@#$(LLVMGCCDIR)#g" \
|
||||||
@echo "config.llvm_obj_root = \"\"\"$(LLVM_OBJ_ROOT)\"\"\"" >> $@
|
$(PROJ_SRC_DIR)/lit.site.cfg.in > $@
|
||||||
@echo >> $@
|
|
||||||
@echo "# Let the main config do the real work." >> $@
|
|
||||||
@echo "lit.load_config(config, \"\"\"$(LLVM_SRC_ROOT)/test/lit.cfg\"\"\")" >> $@
|
|
||||||
|
|
||||||
Unit/lit.site.cfg: Unit/.dir FORCE
|
Unit/lit.site.cfg: Unit/.dir FORCE
|
||||||
@echo "Making LLVM unittest 'lit.site.cfg' file..."
|
@echo "Making LLVM unittest 'lit.site.cfg' file..."
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
## Autogenerated by LLVM/Clang configuration.
|
||||||
|
# Do not edit!
|
||||||
|
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
||||||
|
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
|
||||||
|
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
|
||||||
|
config.llvmgcc_dir = "@LLVMGCCDIR@"
|
||||||
|
|
||||||
|
# Let the main config do the real work.
|
||||||
|
lit.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg")
|
Loading…
Reference in New Issue