Skip to content

Commit a45e083

Browse files
committed
Fix Filecheck config in CMakeLists.txt
1 parent 48cfebe commit a45e083

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

clang/tools/sotoc/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,8 @@ if (SOTOC_STANDALONE_BUILD)
5757
################################################################################
5858

5959
else()
60-
#set(CLANG_CONFIG_HINT ${CMAKE_BINARY_DIR}/lib/cmake/clang)
61-
#set(CLANG_LIBRARY_DIRS ${CMAKE_BINARY_DIR}/lib)
62-
#set(CLANG_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/tools/clang/include )
63-
#libomptarget_say("_________A__________${CLANG_INCLUDE_DIRS}")
64-
#libomptarget_say("_________B__________${CLANG_LIBRARY_DIRS}")
65-
#libomptarget_say("_________C__________${LLVMCONFIG_FILE}")
6660
add_clang_executable(${SOTOC_PROJECT_NAME} ${SOTOC_SOURCES})
6761
endif()
68-
# include_directories(${CLANG_INCLUDE_DIRS})
69-
# link_directories(${CLANG_LIBRARY_DIRS})
70-
# add_definitions(${CLANG_DEFINITIONS})
71-
72-
# add_definitions(
73-
# -D__STDC_LIMIT_MACROS
74-
# -D__STDC_CONSTANT_MACROS
75-
# )
7662

7763
set(SOTOC_DEBUG_OUTPUT OFF CACHE BOOL "Compiles sotoc with possible debug output")
7864
if (SOTOC_DEBUG_OUTPUT)

clang/tools/sotoc/test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ endif()
3535

3636
set(SOTOC_LIT_ARGS -v --no-progress-bar)
3737

38+
set(SOTOC_FILECHECK_EXE ${LLVM_FILECHECK_EXE})
39+
3840
add_custom_target(check-sotoc
3941
COMMAND ${PYTHON_EXECUTABLE} ${SOTOC_LLVM_LIT_EXECUTABLE} ${SOTOC_LIT_ARGS} ${CMAKE_CURRENT_BINARY_DIR}
4042
DEPENDS sotoc

clang/tools/sotoc/test/lit.site.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ config.sotoc_obj_root = '@SOTOC_OBJ_ROOT@'
66
config.library_dir = "@SOTOC_LIBOMP_LIBRARY_DIR@"
77
config.omp_header_directory = "@SOTOC_OMP_HEADER_DIR@"
88
config.operating_system = "@CMAKE_SYSTEM_NAME@"
9-
config.filecheck = "@LLVM_FILECHECK_EXE@"
9+
config.filecheck = "@SOTOC_FILECHECK_EXE@"
1010

1111
# Let the main config do the real work.
1212
lit_config.load_config(config, '@SOTOC_TEST_DIR@/lit.cfg')

0 commit comments

Comments
 (0)