build_ios.sh 451 字节
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 16
      -DWITH_TESTING=OFF \
      -DWITH_SWIG_PY=OFF \
      -DWITH_STYLE_CHECK=OFF \
17
      -DCMAKE_BUILD_TYPE=Release \
18 19
      ..

20
make -j 2