Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: examples/games/nethack-3.4.3/nacl-nethack-3.4.3.sh

Issue 11636027: Add ARM toolchain support. (Closed) Base URL: git@github.com:samclegg/naclports.git@sbc
Patch Set: remove more use of BITSIZE Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: examples/games/nethack-3.4.3/nacl-nethack-3.4.3.sh
diff --git a/examples/games/nethack-3.4.3/nacl-nethack-3.4.3.sh b/examples/games/nethack-3.4.3/nacl-nethack-3.4.3.sh
index 5504e48216c28d859fe1eafac2fcfeeec7e08f91..d657874f45a0f82b31d84bbb4c898d493060c8b4 100755
--- a/examples/games/nethack-3.4.3/nacl-nethack-3.4.3.sh
+++ b/examples/games/nethack-3.4.3/nacl-nethack-3.4.3.sh
@@ -30,7 +30,7 @@ CustomBuildStep() {
# because we are not running ./configure and the Makefile was hacked
export NACL_CCFLAGS="-O"
export NACL_LDFLAGS=""
- if [ ${NACL_PACKAGES_BITSIZE} == "pnacl" ] ; then
+ if [ ${NACL_ARCH} = "pnacl" ] ; then
export NACL_CCFLAGS="-O3 -g"
export NACL_LDFLAGS="-O0 -static"
fi
@@ -56,7 +56,7 @@ CustomBuildStep() {
local ASSEMBLY_DIR="${PUBLISH_DIR}/nethack"
MakeDir ${ASSEMBLY_DIR}
cp ${PACKAGE_DIR}/out/games/lib/nethackdir/nethack \
- ${ASSEMBLY_DIR}/nethack_x86-${NACL_PACKAGES_BITSIZE:-"32"}.nexe
+ ${ASSEMBLY_DIR}/nethack_${NACL_ARCH}.nexe
ChangeDir ${PACKAGE_DIR}/out/games
rm ${PACKAGE_DIR}/out/games/lib/nethackdir/nethack
tar cf ${ASSEMBLY_DIR}/nethack.tar lib
@@ -90,7 +90,7 @@ CustomPackageInstall() {
DefaultExtractStep
DefaultPatchStep
CustomBuildStep
- if [ ${NACL_PACKAGES_BITSIZE} == "pnacl" ] ; then
+ if [ ${NACL_ARCH} = "pnacl" ] ; then
# NOTE: nethack does not use a build subdir
DefaultTranslateStep ${PACKAGE_NAME} src/nethack
fi

Powered by Google App Engine
This is Rietveld 408576698