1#!/usr/bin/env python 2# See iosbuilder.py for instructions 3# Note that this "cheats" and runs all the ./configure tests on the Mac NOT on the iPhone 4# but this is ok because the answers are the same. 5# Force a 32 bit compile because that is what ARM supports. 6# No need to provide BLAS/LAPACK because Mac and iOS support the same Accelerate framework 7# 8if __name__ == '__main__': 9 import sys 10 import os 11 sys.path.insert(0, os.path.abspath('config')) 12 import configure 13 configure_options = [ 14# '--with-cc=gcc -m32', 15 '--with-sowing=0', 16 '--with-hwloc=0', 17 '--with-mpi=0', 18 '--with-ios=1', 19 '--with-valgrind=0', 20 '--with-opengles=1', 21 '--with-x=0', 22 '--with-fc=0', 23 '--known-blaslapack-mangling=underscore', # ios only supports this mangling 24 'PETSC_ARCH=arch-ios-simulator', 25 ] 26 configure.petsc_configure(configure_options) 27