You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like configuring with EMBREE_STATIC_LIB should cause dll_export to be defined as empty as opposed to __declspec(dllexport) in common/sys/platform.h. In practice this does not work because in common/tasking/taskschedulerinternal.h, #include "../../include/embree4/rtcore.h", in which EMBREE_STATIC_LIB is defined, is placed very late compared to #include "../sys/platform.h", in which the define is supposed to take effect. This causes some of the functions in TaskScheduler to be exported when linked to the final executable even though they really shouldn't be.
It looks like configuring with
EMBREE_STATIC_LIB
should causedll_export
to be defined as empty as opposed to__declspec(dllexport)
in common/sys/platform.h. In practice this does not work because in common/tasking/taskschedulerinternal.h,#include "../../include/embree4/rtcore.h"
, in whichEMBREE_STATIC_LIB
is defined, is placed very late compared to#include "../sys/platform.h"
, in which the define is supposed to take effect. This causes some of the functions inTaskScheduler
to be exported when linked to the final executable even though they really shouldn't be.The text was updated successfully, but these errors were encountered: