From 4bbc16e2ccb9270b25d219e756373f7fd23c1329 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Mon, 19 Aug 2024 07:28:49 -0700 Subject: [PATCH] Add helpful error messages --- ape/ape-m1.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ape/ape-m1.c b/ape/ape-m1.c index 8d188404a..2d677f22b 100644 --- a/ape/ape-m1.c +++ b/ape/ape-m1.c @@ -16,6 +16,12 @@ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ +#ifndef __APPLE__ +#error "ape/ape-m1.c is for apple silicon. chances you want ape/loader.c" +#endif +#ifndef __aarch64__ +#error "ape/ape-m1.c is for apple silicon; you want: make o//ape/ape.macho" +#endif #include #include #include