Skip to content

Commit 3015edf

Browse files
authored
[cmake] Pass LLVM_TABLEGEN_FLAGS to cross compile targets (#138086)
If ValueTypes.td contains conditional directives enabled by defs in LLVM_TABLEGEN_FLAGS then native build tblgen and min-tblgen must be built with matching flags. This ensures the embedded types in TableGen are consistent with those used for building tables.
1 parent 79b841d commit 3015edf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/cmake/modules/CrossCompile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype)
100100
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}"
101101
-DLLVM_INCLUDE_BENCHMARKS=OFF
102102
-DLLVM_INCLUDE_TESTS=OFF
103+
-DLLVM_TABLEGEN_FLAGS="${LLVM_TABLEGEN_FLAGS}"
103104
${build_type_flags} ${linker_flag} ${external_clang_dir} ${libc_flags}
104105
${ARGN}
105106
WORKING_DIRECTORY ${${project_name}_${target_name}_BUILD}

0 commit comments

Comments
 (0)