<div dir="ltr"><div><div><div><div><div>Hi,<br></div>I am trying to build clang as a cross compiler and I am having some trouble getting it working. I configured clang with cmake options:<br><br>cmake ../llvm-3.3 -DCMAKE_BUILD_TYPE=Release -DLLVM_DEFAULT_TARGET_TRIPLE=i586-XXX-linux-gnu -DDEFAULT_SYSROOT=/usr/i586-XXX-linux-gnu/sys-root -DLLVM_TARGETS_TO_BUILD=X86<br>
<br></div>But clang -v reports:<br><br>Target: i386-XXX-linux-gnu<br><br></div>So clang is canonicalizing the i586 into i386. This is causing clang to fail to find all the gnu cross tools with names /usr/bin/i586-XXX-linux-gnu-*<br>
Is there any good reason for this canonicalization? Does it make sense to disable it? What is the best way about solving this issue?<br><br></div>Thanks!<br></div>-Kal<br></div>