File tree Expand file tree Collapse file tree 2 files changed +116
-115
lines changed Expand file tree Collapse file tree 2 files changed +116
-115
lines changed Original file line number Diff line number Diff line change 13
13
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
14
14
15
15
# We chose MODULE type because libpi_opencl.so should never be linked dynamically to a target.
16
- # MODULE will limit this library to be used to load symbols via dllopen only
16
+ # MODULE will limit this library to be used to load symbols via dlopen only
17
17
add_library (pi_opencl MODULE
18
18
"${sycl_inc_dir} /CL/sycl/detail/pi.h"
19
19
"pi_opencl.cpp"
@@ -37,11 +37,11 @@ target_link_libraries( pi_opencl
37
37
)
38
38
if (MSVC )
39
39
# by defining __SYCL_BUILD_SYCL_DLL, we can use __declspec(dllexport)
40
- # which are individually tagged for all pi* symbols in pi_opencl.cpp
40
+ # which are individually tagged for all pi* symbols in pi.h
41
41
target_compile_definitions (pi_opencl PRIVATE __SYCL_BUILD_SYCL_DLL )
42
42
else ()
43
43
# we set the visibility of all symbols 'hidden' by default.
44
- # In *.cpp files , we set exported symbols with visibility==default individually
44
+ # In pi.h file , we set exported symbols with visibility==default individually
45
45
target_compile_options (pi_opencl PUBLIC -fvisibility=hidden )
46
46
47
47
# This script file is used to allow exporting pi* symbols only.
You can’t perform that action at this time.
0 commit comments