File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -57,22 +57,8 @@ if (SOTOC_STANDALONE_BUILD)
57
57
################################################################################
58
58
59
59
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}")
66
60
add_clang_executable (${SOTOC_PROJECT_NAME} ${SOTOC_SOURCES} )
67
61
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
- # )
76
62
77
63
set (SOTOC_DEBUG_OUTPUT OFF CACHE BOOL "Compiles sotoc with possible debug output" )
78
64
if (SOTOC_DEBUG_OUTPUT )
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ endif()
35
35
36
36
set (SOTOC_LIT_ARGS -v --no-progress-bar )
37
37
38
+ set (SOTOC_FILECHECK_EXE ${LLVM_FILECHECK_EXE} )
39
+
38
40
add_custom_target (check-sotoc
39
41
COMMAND ${PYTHON_EXECUTABLE} ${SOTOC_LLVM_LIT_EXECUTABLE} ${SOTOC_LIT_ARGS} ${CMAKE_CURRENT_BINARY_DIR}
40
42
DEPENDS sotoc
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ config.sotoc_obj_root = '@SOTOC_OBJ_ROOT@'
6
6
config.library_dir = "@SOTOC_LIBOMP_LIBRARY_DIR@"
7
7
config.omp_header_directory = "@SOTOC_OMP_HEADER_DIR@"
8
8
config.operating_system = "@CMAKE_SYSTEM_NAME@"
9
- config.filecheck = "@LLVM_FILECHECK_EXE @"
9
+ config.filecheck = "@SOTOC_FILECHECK_EXE @"
10
10
11
11
# Let the main config do the real work.
12
12
lit_config.load_config(config, '@SOTOC_TEST_DIR@/lit.cfg')
You can’t perform that action at this time.
0 commit comments