[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:
Joseph Huber 2025-08-05 17:38:11 -05:00
parent 9c6bb18040
commit 3bc1b15235

View File

@ -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