mgorny added a comment.

This change breaks cross-compilation now, as it tries running an executable 
built for the target system:

  FAILED: tools/clang/lib/Tooling/ASTNodeAPI.json 
  cd /home/mgorny/llvm-project/build.arm64/tools/clang/lib/Tooling && 
/home/mgorny/llvm-project/build.arm64/bin/clang-ast-dump --skip-processing=0 
--astheader=/home/mgorny/llvm-project/build.arm64/tools/clang/lib/Tooling/ASTTU.cpp
 -I /home/mgorny/llvm-project/build.arm64/lib/clang/13.0.0/include -I 
/home/mgorny/llvm-project/llvm/../clang/include -I 
/home/mgorny/llvm-project/build.arm64/tools/clang/include -I 
/home/mgorny/llvm-project/build.arm64/include -I 
/home/mgorny/llvm-project/llvm/include -I /sysroot/arm64/usr/include/c++/v1 -I 
/usr/lib/clang/11.0.1/include -I /sysroot/arm64/usr/include --json-output-path 
/home/mgorny/llvm-project/build.arm64/tools/clang/lib/Tooling/ASTNodeAPI.json
  /bin/sh: /home/mgorny/llvm-project/build.arm64/bin/clang-ast-dump: Exec 
format error

I guess you can look at TableGens how to correctly generate and use host 
executables.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93164/new/

https://reviews.llvm.org/D93164

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to