[llvm-commits] [llvm] r143555 - /llvm/trunk/test/CMakeLists.txt
Daniel Dunbar
daniel at zuster.org
Wed Nov 2 10:54:51 PDT 2011
Author: ddunbar
Date: Wed Nov 2 12:54:51 2011
New Revision: 143555
URL: http://llvm.org/viewvc/llvm-project?rev=143555&view=rev
Log:
tests: Clean up tests/CMakeLists.txt to drop some variable configuration we no
longer need substitutions for.
Modified:
llvm/trunk/test/CMakeLists.txt
Modified: llvm/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=143555&r1=143554&r2=143555&view=diff
==============================================================================
--- llvm/trunk/test/CMakeLists.txt (original)
+++ llvm/trunk/test/CMakeLists.txt Wed Nov 2 12:54:51 2011
@@ -29,41 +29,6 @@
set(LIT_ARGS "${LLVM_LIT_ARGS}")
separate_arguments(LIT_ARGS)
- get_directory_property(DEFINITIONS COMPILE_DEFINITIONS)
- foreach(DEF ${DEFINITIONS})
- set(DEFS "${DEFS} -D${DEF}")
- endforeach()
- get_directory_property(INC_DIRS INCLUDE_DIRECTORIES)
- foreach(INC_DIR ${INC_DIRS})
- set(IDIRS "${IDIRS} -I${INC_DIR}")
- endforeach()
-
- if( MSVC )
- # The compiler's path may contain white space. Wrap it:
- string(REPLACE "<CMAKE_CXX_COMPILER>" "\\\"${CMAKE_CXX_COMPILER}\\\"" TEST_COMPILE_CXX_CMD ${CMAKE_CXX_COMPILE_OBJECT})
- # Eliminate continuation lines from NMake flow. PR9680
- string(REPLACE "@<<\n" " " TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- string(REPLACE "\n<<" " " TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- else()
- string(REPLACE "<CMAKE_CXX_COMPILER>" "${CMAKE_CXX_COMPILER}" TEST_COMPILE_CXX_CMD ${CMAKE_CXX_COMPILE_OBJECT})
- endif()
-
- string(REPLACE "<DEFINES>" "${DEFS}" TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- string(REPLACE "<FLAGS>" "${CMAKE_CXX_FLAGS}" TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- if (MSVC) # PR9680
- # Eliminate MSVC equivalent of -o
- string(REPLACE "/Fo<OBJECT>" "" TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- # Eliminate "how to rename program database" argument
- string(REPLACE "/Fd<TARGET_PDB>" "" TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- else()
- string(REPLACE "-o" "" TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- endif(MSVC)
- string(REGEX REPLACE "<[^>]+>" "" TEST_COMPILE_CXX_CMD ${TEST_COMPILE_CXX_CMD})
- set(TEST_COMPILE_CXX_CMD "${TEST_COMPILE_CXX_CMD} ${IDIRS}")
- if(NOT MSVC)
- set(TEST_COMPILE_CXX_CMD "${TEST_COMPILE_CXX_CMD} -x c++")
- # MSVC already has /TP to indicate a C++ source file
- endif()
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/site.exp.in
${CMAKE_CURRENT_BINARY_DIR}/site.exp)
@@ -76,7 +41,6 @@
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
set(LLVM_BINARY_DIR ${LLVM_BINARY_DIR})
set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}/%(build_config)s")
- set(LLVMGCCDIR "")
set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
set(ENABLE_SHARED ${LLVM_SHARED_LIBS_ENABLED})
set(SHLIBPATH_VAR ${SHLIBPATH_VAR})
More information about the llvm-commits
mailing list