+darwin-env() {
+ CC='aarch64-apple-darwin-clang' CXX='aarch64-apple-darwin-clang++' AR='aarch64-apple-darwin-ar' LD='aarch64-apple-darwin-ld' CPP='aarch64-apple-darwin-clang -E' RANLIB='aarch64-apple-darwin-ranlib' STRIP='aarch64-apple-darwin-strip' NM='aarch64-apple-darwin-nm' LIPO='aarch64-apple-darwin-lipo' OTOOL='aarch64-apple-darwin-otool' I_N_T='aarch64-apple-darwin-install_name_tool' LDID='ldid'
+ OPTIMIZATION_FLAGS="-Os -g -flto=thin"
+ DEFAULT_CFLAGS="${OPTIMIZATION_FLAGS} -isystem ${HOME}/Documents/iOS/include"
+ DEFAULT_CPPFLAGS="${OPTIMIZATION_FLAGS} -isystem ${HOME}/Documents/iOS/include"
+ DEFAULT_CXXLAGS="${OPTIMIZATION_FLAGS} -isystem ${HOME}/Documents/iOS/include"
+ DEFAULT_LDFLAGS="${OPTIMIZATION_FLAGS}"
+ IPHONEOS_CFLAGS="-arch arm64 -isysroot ${IPHONEOS_SYSROOT} -miphoneos-version-min=14.0"
+ WATCHOS_CFLAGS="-arch arm64_32 -isysroot ${WATCHOS_SYSROOT} -mwatchos-version-min=7.0"
+ TVOS_CFLAGS="-arch arm64 -isysroot ${TVOS_SYSROOT} -mappletvos-version-min=14.0"
+ export CC CXX AR LD CPP RANLIB STRIP NM LIPO OTOOL I_N_T LDID
+ export OPTIMIZATION_FLAGS DEFAULT_CFLAGS DEFAULT_CXXFLAGS DEFAULT_CPPFLAGS DEFAULT_LDFLAGS IPHONEOS_CFLAGS WATCHOS_CFLAGS TVOS_CFLAGS
+}
+
+iphoneos-arm64-env() {
+ darwin-env
+ export CFLAGS="${DEFAULT_CFLAGS} ${IPHONEOS_CFLAGS}"
+ export CPPFLAGS="${DEFAULT_CPPFLAGS} ${IPHONEOS_CFLAGS}"
+ export CXXFLAGS="${DEFAULT_CXXFLAGS} ${IPHONEOS_CFLAGS}"
+ export LDFLAGS="${DEFAULT_LDFLAGS} ${IPHONEOS_CFLAGS}"
+}
+
+appletvos-arm64-env() {
+ darwin-env
+ export CFLAGS="${DEFAULT_CFLAGS} ${TVOS_CFLAGS}"
+ export CPPFLAGS="${DEFAULT_CPPFLAGS} ${WATCHOS_CFLAGS}"
+ export CXXFLAGS="${DEFAULT_CXXFLAGS} ${WATCHOS_CFLAGS}"
+ export LDFLAGS="${DEFAULT_LDFLAGS} ${WATCHOS_CFLAGS}"
+}
+
+watchos-arm64_32-env() {
+ darwin-env
+ export CFLAGS="${DEFAULT_CFLAGS} ${WATCHOS_CFLAGS}"
+ export CPPFLAGS="${DEFAULT_CPPFLAGS} ${WATCHOS_CFLAGS}"
+ export CXXFLAGS="${DEFAULT_CXXFLAGS} ${WATCHOS_CFLAGS}"
+ export LDFLAGS="${DEFAULT_LDFLAGS} ${WATCHOS_CFLAGS}"
+}
+