enhance(build): Pass trailing arguments from add_concretelang_doc to add_mlir_doc

Pass all arguments starting with `command` passed to
`add_concretelang_doc` to `add_mlir_doc`. This allows for the
specification of additional command line arguments to be passed to
`mlir-tblgen`.
This commit is contained in:
Andi Drebes
2022-07-05 15:24:04 +02:00
parent 511bcd99e7
commit 6c2b1addcc

View File

@@ -3,7 +3,7 @@ include(AddMLIR)
function(add_concretelang_doc doc_filename output_file output_directory command)
set(SAVED_MLIR_BINARY_DIR ${MLIR_BINARY_DIR})
set(MLIR_BINARY_DIR ${CONCRETELANG_BINARY_DIR})
add_mlir_doc(${doc_filename} ${output_file} ${output_directory} ${command})
add_mlir_doc(${doc_filename} ${output_file} ${output_directory} ${command} ${ARGN})
set(MLIR_BINARY_DIR ${SAVED_MLIR_BINARY_DIR})
unset(SAVED_MLIR_BINARY_DIR)
endfunction()