<div dir="ltr">I'm experimenting with a new backend, hoping to build a cross compiler, and reading "Writing an LLVM Compiler Backend". Early on, in "Preliminaries", it suggests editing my configure script to add my new target to the TARGETS_TO_BUILD variable, suggesting some creativity may be required.<div>
<br></div><div>I'm perhaps not creative enough, 'cause I can't get it to work. I tried a couple of variations (one seemed straightforward; in the other, I went through looking for every example of Sparc to see how they did it and making the appropriate changes).</div>
<div><br></div><div>I tried configuring like this</div><div><br></div><div>    ./configure --enable-target=preston --disable-optimized --enable-assertions=yes --prefix=/path-to-install</div><div><br></div><div>and it chunked along for a while, but ultimately failed, complaining</div>
<div><br></div><div>    configure: error: Unrecognized target preston</div><div>    configure: error: ./configure failed for projects/sample</div><div><br></div><div>Any ideas?</div><div><br></div><div>Thanks,</div><div>Preston</div>
<div><br></div></div>