Add helpful error messages

This commit is contained in:
Justine Tunney 2024-08-19 07:28:49 -07:00
parent 863c704684
commit 4bbc16e2cc
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -16,6 +16,12 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. 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 <assert.h> #include <assert.h>
#include <dispatch/dispatch.h> #include <dispatch/dispatch.h>
#include <dlfcn.h> #include <dlfcn.h>