Two small fixes for site.exp for cmake.

llvm-svn: 86453
This commit is contained in:
Daniel Dunbar 2009-11-08 09:29:52 +00:00
parent 84bc8c3058
commit e9bbafe1eb
3 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,10 @@ foreach(c ${LLVM_TARGETS_TO_BUILD})
endforeach(c)
set(TARGETS_TO_BUILD ${TARGETS_BUILT})
# FIXME: This won't work for project files, we need to use a --param.
set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR}")
set(SHLIBEXT "${LTDL_SHLIB_EXT}")
include(FindPythonInterp)
if(PYTHONINTERP_FOUND)
configure_file(

View File

@ -148,9 +148,8 @@ FORCE:
site.exp: FORCE
@echo 'Making a new site.exp file...'
@echo '## these variables are automatically generated by make ##' >site.tmp
@echo '# Do not edit here. If you wish to override these values' >>site.tmp
@echo '# edit the last section' >>site.tmp
@echo '## Autogenerated by LLVM configuration.' > site.tmp
@echo '# Do not edit!' >> site.tmp
@echo 'set target_triplet "$(TARGET_TRIPLE)"' >> site.tmp
@echo 'set TARGETS_TO_BUILD "$(TARGETS_TO_BUILD)"' >> site.tmp
@echo 'set llvmgcc_langs "$(LLVMGCC_LANGS)"' >> site.tmp

View File

@ -1,9 +1,10 @@
## Autogenerated by LLVM/Clang configuration.
## Autogenerated by LLVM configuration.
# Do not edit!
set target_triplet "@TARGET_TRIPLE@"
set TARGETS_TO_BUILD "@TARGETS_TO_BUILD@"
set llvmgcc_langs "@LLVMGCC_LANGS@"
set llvmgcc_version "@LLVMGCC_VERSION@"
set llvmtoolsdir "@LLVM_TOOLS_DIR@"
set llvmlibsdir "@LLVM_LIBS_DIR@"
set llvm_bindings "@LLVM_BINDINGS@"
set srcroot "@LLVM_SOURCE_DIR@"