Skip to content

Commit b054afc

Browse files
committed
[Build] Use host generator tools when cross-compiling
1 parent df03bae commit b054afc

File tree

1 file changed

+4
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+4
-0
lines changed

utils/swift_build_support/swift_build_support/products/llvm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ def build(self, host_target):
338338
llvm_cmake_options.define('LLVM_TABLEGEN', llvm_tblgen)
339339
clang_tblgen = os.path.join(host_build_dir, 'bin', 'clang-tblgen')
340340
llvm_cmake_options.define('CLANG_TABLEGEN', clang_tblgen)
341+
confusable_chars_gen = os.path.join(host_build_dir, 'bin', 'clang-tidy-confusable-chars-gen')
342+
llvm_cmake_options.define('CLANG_TIDY_CONFUSABLE_CHARS_GEN', confusable_chars_gen)
343+
pseudo_gen = os.path.join(host_build_dir, 'bin', 'clang-pseudo-gen')
344+
llvm_cmake_options.define('CLANG_PSEUDO_GEN', pseudo_gen)
341345
llvm = os.path.join(host_build_dir, 'llvm')
342346
llvm_cmake_options.define('LLVM_NATIVE_BUILD', llvm)
343347

0 commit comments

Comments
 (0)