diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 36572852dc3..d7037ab44c3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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( diff --git a/test/Makefile b/test/Makefile index 2eba9159049..1387d56cb19 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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 diff --git a/test/site.exp.in b/test/site.exp.in index bbb9638fe00..f88d36198be 100644 --- a/test/site.exp.in +++ b/test/site.exp.in @@ -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@"