Skip to content

Commit af370c2

Browse files
cccclaifacebook-github-bot
authored andcommitted
update cross compile instruction
Summary: just a bit nit update Reviewed By: mergennachin Differential Revision: D49441797 fbshipit-source-id: d8ef29eea78f203759fdc19cccb276adcff02600
1 parent 9099f79 commit af370c2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/website/docs/tutorials/cmake_build_system.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ I 00:00:00.011709 executorch:executor_runner.cpp:210] 8.000000
119119
Assuming NDK is available on installed, run
120120
```bash
121121
# Run the following lines from executorch folder
122-
rm -r cmake-android-out
123-
mkdir cmake-android-out
124-
cd cmake-android-out
122+
rm -rf cmake-android-out && mkdir cmake-android-out && cd cmake-android-out
125123

126124
# point -DCMAKE_TOOLCHAIN_FILE to the location where ndk is installed
127125
# Run `which buck2`, if it returns empty (meaning the system doesn't know where buck2 is installed), pass in pass in this flag `-DBUCK2=/path/to/buck2` pointing to buck2
@@ -161,9 +159,7 @@ git clone https://github.com/leetal/ios-cmake.git
161159

162160
2. Use the tool chain provided in the repro to build the executorch library.
163161
```bash
164-
rm -r cmake-ios-out
165-
mkdir cmake-ios-out
166-
cd cmake-ios-out
162+
rm -rf cmake-ios-out && mkdir cmake-ios-out && cd cmake-ios-out
167163

168164
# change the platform accordingly, please refer to the table listed in Readme
169165
cmake . -G Xcode -DCMAKE_TOOLCHAIN_FILE=~/ios-cmake/ios.toolchain.cmake -DPLATFORM=SIMULATOR

0 commit comments

Comments
 (0)