WIP: Cycles: oneAPI: hide symbols from kernel library #111606

Closed
Xavier Hallade wants to merge 1 commits from xavierh/blender:symbolsfix into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 2 additions and 1 deletions

View File

@ -995,6 +995,7 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
-L"${WINDOWS_KIT_DIR}/ucrt/x64")
else() # Add Linux specific compiler flags.
list(APPEND sycl_compiler_flags -fPIC)
list(APPEND sycl_compiler_flags -fvisibility=hidden)
# We avoid getting __FAST_MATH__ to be defined when building on CentOS-7 and Rocky-8
# until the compilation issues it triggers at either AoT or JIT stages gets fixed.

View File

@ -20,7 +20,7 @@ enum DeviceKernel : int;
# define CYCLES_KERNEL_ONEAPI_EXPORT extern __declspec(dllimport)
# endif
# else
# define CYCLES_KERNEL_ONEAPI_EXPORT
# define CYCLES_KERNEL_ONEAPI_EXPORT extern __attribute__((visibility("default")))
# endif
# endif