File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,15 @@ function(generate_program_schema _schema_srcs _schema_name)
48
48
${EXECUTORCH_ROOT} /third-party/flatbuffers/include )
49
49
endfunction ()
50
50
51
- set (program_schema_srcs program .fbs scalar_type.fbs)
51
+ # Generate common schema
52
+ set (common_schema_srcs scalar_type.fbs)
53
+ generate_program_schema("${common_schema_srcs} " "common_schema" )
54
+
55
+ # For the other schemas
56
+ set (program_schema_srcs program .fbs)
52
57
generate_program_schema("${program_schema_srcs} " "program_schema" )
58
+ add_dependencies (program_schema common_schema)
53
59
54
- set (bundled_schema_srcs bundled_program_schema.fbs scalar_type.fbs )
60
+ set (bundled_schema_srcs bundled_program_schema.fbs)
55
61
generate_program_schema("${bundled_schema_srcs} " "bundled_schema" )
62
+ add_dependencies (bundled_schema common_schema)
You can’t perform that action at this time.
0 commit comments