Added MacOS build script provided by Claus. Thanks Claus!

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@325 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2023-03-20 09:33:17 +00:00
parent e8df8af5c7
commit 4f0f108494
2 changed files with 19 additions and 2 deletions

View File

@ -338,7 +338,7 @@ static void keyword_to_dynabuf(const char keyword[])
}
// set output format (the output format tree must be set up at this point!)
// set output format
static void set_output_format(const char format_name[])
{
// caution, name may be NULL!
@ -356,7 +356,7 @@ static void set_output_format(const char format_name[])
}
// set CPU type (the cpu type tree must be set up at this point!)
// set CPU type
static void set_starting_cpu(const char cpu_name[])
{
const struct cpu_type *new_cpu_type;

17
src/build_macos.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# from Claus:
# with the new ARM platforms it seems to make sense to build macOS
# binaries as universal x86/arm in the future. I did not find an
# elegant way to do it in a Makefile, but maybe you want to add this
# handy script to your repo?
make clean
make CFLAGS="-target x86_64-apple-macos10.12"
mv acme acme_x86
make clean
make CFLAGS="-target arm64-apple-macos11"
mv acme acme_arm
lipo -create -output acme acme_x86 acme_arm
rm acme_x86
rm acme_arm