From 75f7b5a1802e4d1cb1e06a671f2d0837aab7f7ab Mon Sep 17 00:00:00 2001 From: Billy Moses Date: Fri, 12 Jul 2024 17:12:20 -0400 Subject: [PATCH] Finally working macos jll --- deps/ReactantExtra/BUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/deps/ReactantExtra/BUILD b/deps/ReactantExtra/BUILD index 3a89ba440..c730c86e5 100644 --- a/deps/ReactantExtra/BUILD +++ b/deps/ReactantExtra/BUILD @@ -260,6 +260,40 @@ cc_library( ], alwayslink = True, linkstatic = True, + linkopts = select({ + "//conditions:default": [], + "@bazel_tools//src/conditions:darwin": [ +"-Wl,-exported_symbol,_stablehlo*", +"-Wl,-exported_symbol,_mlir*", +"-Wl,-exported_symbol,_InitializeLogs", +"-Wl,-exported_symbol,_enzymeActivityAttrGet", +"-Wl,-exported_symbol,_MakeCPUClient", +"-Wl,-exported_symbol,_MakeGPUClient", +"-Wl,-exported_symbol,_ClientNumDevices", +"-Wl,-exported_symbol,_ClientNumAddressableDevices", +"-Wl,-exported_symbol,_ClientProcessIndex", +"-Wl,-exported_symbol,_ClientGetDevice", +"-Wl,-exported_symbol,_ClientGetAddressableDevice", +"-Wl,-exported_symbol,_ExecutableFree", +"-Wl,-exported_symbol,_BufferToDevice", +"-Wl,-exported_symbol,_BufferToClient", +"-Wl,-exported_symbol,_DeviceToClient", +"-Wl,-exported_symbol,_PjRtBufferFree", +"-Wl,-exported_symbol,_UnsafeBufferPointer", +"-Wl,-exported_symbol,_ArrayFromHostBuffer", +"-Wl,-exported_symbol,_BufferOnCPU", +"-Wl,-exported_symbol,_CopyBufferToDevice", +"-Wl,-exported_symbol,_BufferToHost", +"-Wl,-exported_symbol,_FreeClient", +"-Wl,-exported_symbol,_ClientCompile", +"-Wl,-exported_symbol,_FreeFuture", +"-Wl,-exported_symbol,_FutureIsReady", +"-Wl,-exported_symbol,_FutureAwait", +"-Wl,-exported_symbol,_RunPassPipeline", +"-Wl,-exported_symbol,_XLAExecute", +"-Wl,-exported_symbol,_RegisterDialects", +"-Wl,-exported_symbol,_InitializeRegistryAndPasses", + ]}), deps = [ "@enzyme//:EnzymeMLIR", "@llvm-project//mlir:AffineDialect",