build_ios.sh 420 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
set -e

# Create the build directory for CMake.
mkdir -p $TRAVIS_BUILD_DIR/build_ios
cd $TRAVIS_BUILD_DIR/build_ios

# Compile paddle binaries
cmake -DCMAKE_SYSTEM_NAME=iOS \
      -DIOS_PLATFORM=OS \
11
      -DCMAKE_OSX_ARCHITECTURES="arm64" \
12
      -DWITH_C_API=ON \
13
      -DUSE_EIGEN_FOR_BLAS=ON \
14 15
      -DWITH_TESTING=OFF \
      -DWITH_SWIG_PY=OFF \
16
      -DCMAKE_BUILD_TYPE=Release \
17 18
      ..

19
make -j 2