Skip to content

Commit d235ba8

Browse files
tarun292facebook-github-bot
authored andcommitted
Fix bundled_executor_runner schema visibility issue (#663)
Summary: Pull Request resolved: #663 Temporary fix to unblock build failures, will follow up with another diff that does this check in a different way. Reviewed By: larryliu0820 Differential Revision: D50019103 fbshipit-source-id: 42f19a182e2acced42c16f53ab2d4f074c400c55
1 parent fd82f21 commit d235ba8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

examples/sdk/bundled_executor_runner/bundled_executor_runner.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <executorch/runtime/platform/log.h>
2929
#include <executorch/runtime/platform/profiler.h>
3030
#include <executorch/runtime/platform/runtime.h>
31-
#include <executorch/schema/bundled_program_schema_generated.h>
3231
#include <executorch/util/bundled_program_verification.h>
3332
#include <executorch/util/util.h>
3433

@@ -83,13 +82,6 @@ int main(int argc, char** argv) {
8382
bundled_program_path,
8483
(unsigned int)file_data.error());
8584

86-
// Check whether the file is a bundled program.
87-
ET_CHECK_MSG(
88-
executorch_flatbuffer::BundledProgramBufferHasIdentifier(
89-
file_data->data()),
90-
"The file '%s' is not a bundled program.",
91-
bundled_program_path);
92-
9385
// Find the offset to the embedded Program.
9486
const void* program_data;
9587
size_t program_data_len;

examples/sdk/bundled_executor_runner/targets.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def define_common_targets():
1919
"//executorch/runtime/executor:program",
2020
"//executorch/extension/data_loader:file_data_loader",
2121
"//executorch/extension/data_loader:buffer_data_loader",
22-
"//executorch/schema:bundled_program_schema",
2322
"//executorch/util:util",
2423
"//executorch/util:bundled_program_verification",
2524
],

0 commit comments

Comments
 (0)