@@ -138,11 +138,15 @@ rm -f "${PROJROOTDIR}/platform.magic.dir" fi # Determine platform if [ -z "${FORCE_PLATFORM}" ]; then - PLATFORM="$(./platform)" + PLATFORM="$(echo 'package require platform; puts [platform::identify]' | ./tcl/inst-8.5/bin/tclsh8.5 2>/dev/null)" + + if [ -z "${PLATFORM}" ]; then + PLATFORM="$(./platform)" + fi else PLATFORM="${FORCE_PLATFORM}" fi export PLATFORM