xref: /petsc/systems/Apple/iOS/bin/arch-ios-simulator.py (revision bbd3f3368baff017a6ea7962313571cf23b2b4ec)
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-mpi=0',
16    '--with-ios=1',
17    '--with-valgrind=0',
18    '--with-opengles=1',
19    '--with-x=0',
20    '--with-fc=0',
21    '--known-blaslapack-mangling=underscore',   # ios only supports this mangling
22    'PETSC_ARCH=arch-ios-simulator',
23  ]
24  configure.petsc_configure(configure_options)
25