Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/libraries/source/spidermonkey/build.sh
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
then | then | ||||
CONF_OPTS="${CONF_OPTS} --with-visual-studio-version=2017 --target=i686" | CONF_OPTS="${CONF_OPTS} --with-visual-studio-version=2017 --target=i686" | ||||
else | else | ||||
CONF_OPTS="${CONF_OPTS}" | CONF_OPTS="${CONF_OPTS}" | ||||
fi | fi | ||||
if [ "`uname -s`" = "Darwin" ] | if [ "`uname -s`" = "Darwin" ] | ||||
then | then | ||||
# Explicitly target x86_64. | ARCH=${ARCH:=""} | ||||
CONF_OPTS="${CONF_OPTS} --target=x86_64-apple-darwin" | if [ -z "${ARCH}" ]; then | ||||
if [ "`uname -m`" == "arm64" ]; then | |||||
ARCH="aarch64" | |||||
else | |||||
ARCH="x86_64" | |||||
fi | |||||
fi | |||||
CONF_OPTS="${CONF_OPTS} --target=$ARCH-apple-darwin" | |||||
# Link to custom-built zlib | # Link to custom-built zlib | ||||
export PKG_CONFIG_PATH="=${ZLIB_DIR}:${PKG_CONFIG_PATH}" | export PKG_CONFIG_PATH="=${ZLIB_DIR}:${PKG_CONFIG_PATH}" | ||||
CONF_OPTS="${CONF_OPTS} --with-system-zlib" | CONF_OPTS="${CONF_OPTS} --with-system-zlib" | ||||
# Specify target versions and SDK | # Specify target versions and SDK | ||||
if [ "${MIN_OSX_VERSION}" ] && [ "${MIN_OSX_VERSION-_}" ]; then | if [ "${MIN_OSX_VERSION}" ] && [ "${MIN_OSX_VERSION-_}" ]; then | ||||
CONF_OPTS="${CONF_OPTS} --enable-macos-target=$MIN_OSX_VERSION" | CONF_OPTS="${CONF_OPTS} --enable-macos-target=$MIN_OSX_VERSION" | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator