<font face="tahoma,sans-serif">Hi,</font><div><font face="tahoma,sans-serif"><br></font></div><div><font face="tahoma,sans-serif">In gcc, I'd use the following code to conditionally compile a .s file (pure assembler) for ARM:</font></div>
<div><font face="tahoma,sans-serif"><br></font></div><div><font face="tahoma,sans-serif"><div>.set device, 0</div><div>.set device, __arm__</div><div><br></div><div>.if device</div><div><br></div><div>…</div><div><br></div>
<div>.endif</div><div><br></div><div>This is failing with clang 3.0 / Xcode 4.2 for simulator builds. You can typically do a clean, build and it works, but second time it fails.</div><div><br></div><div>Is there an alternative I am missing or another way to pass preprocessor directives to the assembler?</div>
<div><br></div><div>Cheers,</div><div><br>Stu</div></font><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><br></div><b style="color: rgb(153, 204, 255); ">Stuart Carnie, CTO</b><br>
<span style="color: rgb(255, 102, 0); "><strong><a href="http://manomio.com/" target="_blank" style="color: rgb(255, 102, 0); ">manomio</a> | in retro we trust!</strong></span></span></div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>
<br></div><b style="color:rgb(153, 204, 255)">Stuart Carnie, CTO</b><br><span style="color:rgb(255, 102, 0)"><strong><a href="http://manomio.com/" style="color:rgb(255, 102, 0)" target="_blank">manomio</a> | in retro we trust!</strong></span></span><br>