From 7e6b3c3cbe862216b7456bf45afba08f3aff015f Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 24 Oct 2024 18:44:46 -0400 Subject: [PATCH] omg mac --- core.d | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core.d b/core.d index a29670e030..68129e3919 100644 --- a/core.d +++ b/core.d @@ -204,6 +204,15 @@ version(OSXCocoa) else enum CocoaAvailable = false; +version(D_OpenD) { + version(OSXCocoa) + pragma(linkerDirective, "-framework", "Cocoa"); +} else { + version(OSXCocoa) + version(LDC) + pragma(linkerDirective, "-framework", "Cocoa"); +} + version(Posix) { import core.sys.posix.signal; import core.sys.posix.unistd;