0
0
forked from blender/blender
blender/intern/cycles/cmake
Sergey Sharybin 3aaf076e8d Fix compilation error with oneAPI disabled and GPU Embree enabled
Happens with systems which do not provide GOLD linker: the linking state
would failing with some missing symbols and print about missing libsycl.so.6.

Seems that BFD linker expects to resolve all symbols, even the indirectly
used ones. This is somewhat counter-intuitive and is not how LLD, GOLD,
or MOLD worls.

The current state of the CMakeLists.txt does request the cycles_bvh to be
linked against SYCL_LIBRARIES. However, the SYCL was only requested to be found
if WITH_CYCLES_DEVICE_ONEAP is true.

Arguably the SYCL_LIBRARIES should only be linked-in into cycles_bvh if
EMBREE_STATIC_LIB, but that does not solve the issue with BFD.

This change makes it so the SYCL is requested to be found if the oneAPI
device is enabled, or if the Embree is detected to require/use SYCL
support.

Pull Request: blender/blender#108965
2023-06-14 18:20:45 +02:00
..
external_libs.cmake Fix compilation error with oneAPI disabled and GPU Embree enabled 2023-06-14 18:20:45 +02:00
macros.cmake Fix Cycles standalone and Hydra build issues in some configurations 2023-04-03 17:32:35 +02:00
msvc_arch_flags.c Cycles: use SPDX license headers 2022-02-11 17:47:34 +01:00