Fix static lib crash by setting top init_priority
Set top init_priority on affecting global variables so that they will be created firstly and destroyed lastly. Change-Id: Ied59fbecab66ba8195c4a7a02b6bef9fa2fad3af
这个提交包含在:
@@ -71,9 +71,11 @@ typedef __int32 ssize_t;
|
||||
#if _MSC_VER < 1900
|
||||
#define snprintf sprintf_s
|
||||
#endif
|
||||
#define ROCCLR_INIT_PRIORITY(priority)
|
||||
#else /*!_WIN32*/
|
||||
#define SIZE_T_FMT "%zu"
|
||||
#define PTR_FMT "%p"
|
||||
#define ROCCLR_INIT_PRIORITY(priority) __attribute__ ((init_priority (priority)))
|
||||
#endif /*!_WIN32*/
|
||||
|
||||
typedef uint32_t cl_mem_fence_flags;
|
||||
|
||||
在新工单中引用
屏蔽一个用户