[OpenMP] Fix weak linkage on malloc declaration
Summary: This being weak forces the external reference to be weak. Either we define it weak or not by pulling it from `libc`. Doing it here causes it to not be extracted properly.
This commit is contained in:
parent
9c6bb18040
commit
3bc1b15235
@ -38,8 +38,8 @@ void free(void *Ptr);
|
||||
} // namespace ompx
|
||||
|
||||
extern "C" {
|
||||
[[gnu::weak]] void *malloc(size_t Size);
|
||||
[[gnu::weak]] void free(void *Ptr);
|
||||
void *malloc(size_t Size);
|
||||
void free(void *Ptr);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user