mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[iOS] Enable ARC for CMake build (#67884)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67884 Test Plan: Imported from OSS Reviewed By: husthyc Differential Revision: D32191532 Pulled By: xta0 fbshipit-source-id: a295004f8e7f1b0f5a4ab12ffd9b37c36b80226b
This commit is contained in:
parent
c2ceba8ada
commit
f5daa9f76b
1 changed files with 3 additions and 0 deletions
|
|
@ -176,6 +176,9 @@ if [ "${VERBOSE:-}" == '1' ]; then
|
|||
CMAKE_ARGS+=("-DCMAKE_VERBOSE_MAKEFILE=1")
|
||||
fi
|
||||
|
||||
# enable ARC
|
||||
CMAKE_ARGS+=("-DCMAKE_CXX_FLAGS=-fobjc-arc")
|
||||
|
||||
# Now, actually build the iOS target.
|
||||
BUILD_ROOT=${BUILD_ROOT:-"$CAFFE2_ROOT/build_ios"}
|
||||
INSTALL_PREFIX=${BUILD_ROOT}/install
|
||||
|
|
|
|||
Loading…
Reference in a new issue