--- setup.py.orig	2024-01-01 00:00:00.000000000 +0000
+++ setup.py	2024-01-01 00:00:00.000000000 +0000
@@ -198,7 +198,7 @@
         extra_compile_args["cxx"].extend(
             ["/MP", "/Zc:lambda", "/Zc:preprocessor", "/Zc:__cplusplus"]
         )
-    elif "OpenMP not found" not in torch.__config__.parallel_info():
+    elif sys.platform != "darwin" and "OpenMP not found" not in torch.__config__.parallel_info():
         extra_compile_args["cxx"].append("-fopenmp")

     include_dirs = [extensions_dir]
