@@ -152,21 +152,11 @@ which "${PYTHON_EXECUTABLE}"
152152cmake_install_executorch_libraries () {
153153    echo  " Installing libexecutorch.a, libextension_module.so, libportable_ops_lib.a" 
154154    rm -rf cmake-out
155-     retry cmake \
155+     retry cmake --preset llm  \
156156        -DCMAKE_INSTALL_PREFIX=cmake-out \
157157        -DCMAKE_BUILD_TYPE=" $CMAKE_BUILD_TYPE " 
158-         -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
159-         -DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
160-         -DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
161-         -DEXECUTORCH_BUILD_KERNELS_CUSTOM=" $CUSTOM " 
162-         -DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
163-         -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
164-         -DEXECUTORCH_BUILD_XNNPACK=" $XNNPACK " 
165-         -DEXECUTORCH_BUILD_MPS=" $MPS " 
166-         -DEXECUTORCH_BUILD_COREML=" $COREML " 
167158        -DEXECUTORCH_BUILD_QNN=" $QNN " 
168159        -DQNN_SDK_ROOT=" $QNN_SDK_ROOT " 
169-         -DPYTHON_EXECUTABLE=" $PYTHON_EXECUTABLE " 
170160        -Bcmake-out . 
171161    cmake --build cmake-out -j9 --target install --config " $CMAKE_BUILD_TYPE " 
172162}
@@ -181,10 +171,6 @@ cmake_build_llama_runner() {
181171    retry cmake \
182172        -DCMAKE_INSTALL_PREFIX=cmake-out \
183173        -DCMAKE_BUILD_TYPE=" $CMAKE_BUILD_TYPE " 
184-         -DEXECUTORCH_BUILD_KERNELS_CUSTOM=" $CUSTOM " 
185-         -DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
186-         -DEXECUTORCH_BUILD_XNNPACK=" $XNNPACK " 
187-         -DPYTHON_EXECUTABLE=" $PYTHON_EXECUTABLE " 
188174        -Bcmake-out/${dir}  \
189175        ${dir} 
190176    cmake --build cmake-out/${dir}  -j9 --config " $CMAKE_BUILD_TYPE " 
0 commit comments