File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ elseif(UNIX)
86
86
"-Wuninitialized "
87
87
"-Wmissing-declarations "
88
88
"-fdiagnostics-color=auto "
89
+ "-Wno-deprecated-declarations "
89
90
)
90
91
string (CONCAT SDL_FLAGS
91
92
"-fstack-protector "
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ foreach(tf ${spirv-test-files})
21
21
file (COPY ${tf} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
22
22
endforeach ()
23
23
24
- add_library (dpcpp_kernels
25
- STATIC
26
- ${CMAKE_CURRENT_SOURCE_DIR} /dpcpp_kernels.cpp
27
- )
28
-
29
24
if (DPCTL_GENERATE_COVERAGE )
30
25
file (GLOB_RECURSE
31
26
sources ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp
@@ -61,7 +56,6 @@ if(DPCTL_GENERATE_COVERAGE)
61
56
GTest::GTest
62
57
${IntelSycl_OPENCL_LIBRARY}
63
58
${CMAKE_DL_LIBS}
64
- dpcpp_kernels
65
59
)
66
60
add_custom_target (llvm-cov
67
61
COMMAND ${CMAKE_MAKE_PROGRAM} dpctl_c_api_tests
@@ -96,14 +90,18 @@ if(DPCTL_GENERATE_COVERAGE)
96
90
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
97
91
)
98
92
else ()
93
+ add_library (dpcpp_kernels
94
+ STATIC
95
+ ${CMAKE_CURRENT_SOURCE_DIR} /dpcpp_kernels.cpp
96
+ )
99
97
file (GLOB_RECURSE sources ${CMAKE_CURRENT_SOURCE_DIR} /*.cpp )
100
98
add_executable (dpctl_c_api_tests EXCLUDE_FROM_ALL ${sources} )
101
99
target_link_libraries (dpctl_c_api_tests
102
100
${CMAKE_THREAD_LIBS_INIT}
103
101
GTest::GTest
104
102
DPCTLSyclInterface
105
103
${LEVEL_ZERO_LIBRARY}
106
- dpcpp_kernels
104
+ dpcpp_kernels
107
105
)
108
106
endif ()
109
107
Original file line number Diff line number Diff line change 24
24
// ===----------------------------------------------------------------------===//
25
25
26
26
#include " Support/CBindingWrapping.h"
27
+ #ifndef DPCTL_COVERAGE
27
28
#include " dpcpp_kernels.hpp"
29
+ #endif
28
30
#include " dpctl_sycl_context_interface.h"
29
31
#include " dpctl_sycl_device_interface.h"
30
32
#include " dpctl_sycl_device_selector_interface.h"
You can’t perform that action at this time.
0 commit comments