Commit 355677ed authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Bake templates into the compiler binary

Summary: [Thrift] Bake templates into the compiler binary rather than having to package the templates with the compiler.

Reviewed By: stevegury, vitaut

Differential Revision: D16356056

fbshipit-source-id: b971dce7aada8dc2a26587fbf818e661acd0c555
parent 2ccb83e2
......@@ -99,10 +99,6 @@ function(add_fbthrift_cpp_library LIB_NAME THRIFT_FILE)
thrift_include_options
"-I;$<JOIN:$<TARGET_PROPERTY:${LIB_NAME}.thrift_includes,INTERFACE_INCLUDE_DIRECTORIES>,;-I;>"
)
file(
GLOB_RECURSE THRIFT_TEMPLATE_FILES
FOLLOW_SYMLINKS "${FBTHRIFT_TEMPLATES_DIR}/cpp2/*.mustache"
)
# Emit the rule to run the thrift compiler
add_custom_command(
......@@ -115,7 +111,6 @@ function(add_fbthrift_cpp_library LIB_NAME THRIFT_FILE)
COMMAND
"${FBTHRIFT_COMPILER}"
--strict
--templates "${FBTHRIFT_TEMPLATES_DIR}"
--gen "mstch_cpp2:${GEN_ARG_STR}"
"${thrift_include_options}"
-o "${output_dir}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment