mirror of
https://github.com/amd/blis.git
synced 2026-05-11 09:39:59 +00:00
Adding __attribute__((constructor/destructor)) for CLANG case.
CLANG supports __attribute__, but its documentation doesn't mention support for constructor/destructor. Compiling with clang and testing shows that it does support this. Change-Id: Ie115b20634c26bda475cc09c20960d687fb7050b
This commit is contained in:
@@ -93,11 +93,11 @@
|
||||
#define BLIS_ATTRIB_CTOR
|
||||
#define BLIS_ATTRIB_DTOR
|
||||
#elif defined(__clang__)
|
||||
// CLANG supports __attribute__, but doesn't mention support for
|
||||
// constructor/destructor. If we can confirm that CLANG supports
|
||||
// this attribute, modify it to proper definition
|
||||
#define BLIS_ATTRIB_CTOR
|
||||
#define BLIS_ATTRIB_DTOR
|
||||
// CLANG supports __attribute__, but its documentation doesn't
|
||||
// mention support for constructor/destructor. Compiling with
|
||||
// clang and testing shows that it does support.
|
||||
#define BLIS_ATTRIB_CTOR __attribute__((constructor))
|
||||
#define BLIS_ATTRIB_DTOR __attribute__((destructor))
|
||||
#elif defined(__GNUC__)
|
||||
#define BLIS_ATTRIB_CTOR __attribute__((constructor))
|
||||
#define BLIS_ATTRIB_DTOR __attribute__((destructor))
|
||||
|
||||
Reference in New Issue
Block a user