pytorch/scripts
Anatoly Rosencrantz 1040b5f91c Enable bitcode for iOS builds
Summary:
build_ios.sh now have `-fembed-bitcode` flags for cmake and passes these flags to build_host_protoc.sh (which now accepts optional argument `--other-flags`). That allows to use output libs (libCaffe2_CPU.a, libCAFFE2_NNPACK.a, libCAFFE2_PTHREADPOOL.a and libprotobuf-lite.a, libprotobuf.a respectively) in Xcode projects with bitcode enabled.

Bitcode is enabled by default in all projects since Xcode7, is crucial for slicing and is mandatory for watchOS targets. Enabling bitcode for target requires bitcode to be enabled for all dependencies also, so Caffe2 built without bitcode forces developers to switch off bitcode for the whole app.
Closes https://github.com/caffe2/caffe2/pull/457

Reviewed By: bwasti

Differential Revision: D4978644

Pulled By: Yangqing

fbshipit-source-id: 5165abb507fb91bc8c38f7348d6836bccf8fcc22
2017-05-01 10:32:11 -07:00
..
appveyor bugfix for Windows, esp. VS 2017 2017-03-21 05:17:59 -07:00
build_android.sh Disable openmp when building for android 2017-04-07 14:35:01 -07:00
build_host_protoc.bat bugfix for Windows, esp. VS 2017 2017-03-21 05:17:59 -07:00
build_host_protoc.sh Enable bitcode for iOS builds 2017-05-01 10:32:11 -07:00
build_ios.sh Enable bitcode for iOS builds 2017-05-01 10:32:11 -07:00
build_local.sh Added local build and apple fix for generating .so files 2017-02-16 06:11:28 -08:00
build_raspbian.sh Ensure we are not using Eigen LGPL code, and build on raspbian. 2017-01-30 09:44:27 -08:00
build_tegra_x1.sh Add six to Tegra X1 install script 2017-04-19 11:02:23 -07:00
build_windows.bat Windows build for easier python usage 2017-03-24 11:33:27 -07:00
diagnose_protobuf.py Re-apply #266 2017-04-25 21:17:04 -07:00
get_python_cmake_flags.py Fix python support problems caused by building script errors. 2017-04-24 17:17:21 -07:00
start_ipython_notebook.sh Added local build and apple fix for generating .so files 2017-02-16 06:11:28 -08:00