Skip to content

Commit d6a61df

Browse files
committed
Fix sdk_example_runner.sh
1 parent ba0caf8 commit d6a61df

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

examples/sdk/CMakeLists.txt

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ 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+
#find_package(portable_ops_lib CONFIG REQUIRED)
42+
target_link_options_shared_lib(executorch)
43+
target_link_options_shared_lib(portable_ops_lib)
44+
4145
target_include_directories(executorch INTERFACE ${_common_include_directories})
4246

4347
find_package(
@@ -48,18 +52,6 @@ add_executable(sdk_example_runner
4852
sdk_example_runner/sdk_example_runner.cpp)
4953
target_compile_options(executorch INTERFACE -DET_EVENT_TRACER_ENABLED)
5054

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)
6355
target_include_directories(
6456
etdump
6557
INTERFACE
@@ -72,6 +64,8 @@ target_link_libraries(
7264
gflags
7365
etdump
7466
extension_data_loader
75-
flatcc
7667
bundled_program
77-
portable_ops_lib)
68+
flatccrt
69+
portable_ops_lib
70+
portable_kernels
71+
)

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)