From c91178e3e3e7d8a524e5de1b5ab8ad01c171aa6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 12 Jan 2021 17:33:53 +0100
Subject: [PATCH] macOS/use_dll: no longer pass -arch x86_64, in preparation
 for ARM support

---
 src/ModelTree.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 47bef316..9b154e2d 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2003-2020 Dynare Team
+ * Copyright © 2003-2021 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -2050,7 +2050,7 @@ ModelTree::compileMEX(const string &basename, const string &funcname, const stri
               exit(EXIT_FAILURE);
             }
 #endif
-          flags << " -fno-common -arch x86_64 -mmacosx-version-min=10.9 -Wl,-twolevel_namespace -undefined error -bundle";
+          flags << " -fno-common -mmacosx-version-min=10.9 -Wl,-twolevel_namespace -undefined error -bundle";
           libs += " -lm -lstdc++";
         }
     }
-- 
GitLab