Skip to content

Commit 171c4ef

Browse files
committed
Fix sdk_example_runner.sh
1 parent ba0caf8 commit 171c4ef

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

examples/sdk/CMakeLists.txt

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ set(_common_include_directories ${EXECUTORCH_ROOT}/..)
3838
# Find prebuilt libraries. executorch package should contain
3939
# portable_ops_lib, etdump, bundled_program.
4040
find_package(executorch CONFIG REQUIRED)
41+
target_link_options_shared_lib(executorch)
42+
target_link_options_shared_lib(portable_ops_lib)
43+
4144
target_include_directories(executorch INTERFACE ${_common_include_directories})
4245

4346
find_package(
@@ -48,18 +51,6 @@ add_executable(sdk_example_runner
4851
sdk_example_runner/sdk_example_runner.cpp)
4952
target_compile_options(executorch INTERFACE -DET_EVENT_TRACER_ENABLED)
5053

51-
# portable_ops_lib
52-
gen_selected_ops("" "" "ON")
53-
# Expect gen_selected_ops output file to be selected_operators.yaml
54-
generate_bindings_for_kernels(
55-
FUNCTIONS_YAML ${EXECUTORCH_ROOT}/kernels/portable/functions.yaml
56-
)
57-
gen_operators_lib(
58-
"portable_ops_lib"
59-
KERNEL_LIBS portable_kernels
60-
DEPS executorch)
61-
62-
target_compile_options(portable_ops_lib INTERFACE -DET_EVENT_TRACER_ENABLED)
6354
target_include_directories(
6455
etdump
6556
INTERFACE
@@ -72,6 +63,8 @@ target_link_libraries(
7263
gflags
7364
etdump
7465
extension_data_loader
75-
flatcc
7666
bundled_program
77-
portable_ops_lib)
67+
flatccrt
68+
portable_ops_lib
69+
portable_kernels
70+
)

examples/sdk/test_sdk_example_runner.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ cmake_install_executorch_sdk_lib() {
1818
echo "Installing libexecutorch.a, libportable_kernels.a, libetdump.a, libbundled_program.a"
1919
rm -rf cmake-out
2020

21-
retry cmake -DBUCK2="$BUCK" \
22-
-DCMAKE_INSTALL_PREFIX=cmake-out \
21+
retry cmake -DCMAKE_INSTALL_PREFIX=cmake-out \
2322
-DCMAKE_BUILD_TYPE=Release \
2423
-DEXECUTORCH_BUILD_SDK=ON \
2524
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \

0 commit comments

Comments
 (0)