[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    [Boost-build]  Android and Clang
From:       Antony Polukhin <antoshkka () gmail ! com>
Date:       2015-02-04 17:38:19
Message-ID: CAKqmYPZuP=RwOh1S8yz8HBc=KVCTfUrY+gdauvzMxvMDE=Vfow () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

Dmitry Moskalchuk from CrystaX is working on Android support for regression
tests. He noted the problems with clang toolchain indication on Android:

BTW, if you'll look on
> http://boost.crystax.net/master/developer/summary.html, you'll see clang
> toolchains indicated as 'clang-linux-3.4' and 'clang-linux-3.5'. It goes
> from the fact that Boost build scripts suppose there are just two types
> of clang - clang-darwin and clang-linux, and switch between them based
> on host OS condition, which is wrong. It should be based on target OS.
> Look here:
> https://github.com/boostorg/build/blob/develop/src/tools/clang.jam. I
> suppose there should be smth like this:
>
> if $(target-os) = darwin
>     toolset.using clang-darwin .....
> else if $(target-os) = linux
>     toolset.using clang-linux ...
> else if $(target-os) = android
>     toolset.using clang-android ....
>
> Or smth like that. I don't know bjam syntax good, so it's just to
> indicate my idea. I'd be appreciate if you could fix this while I'm
> finishing with scripts refactoring.
>

Could someone take a look into this issue and provide some fixes?

Probably the better solution would be to construct toolchain name from
$(toolset-base-name)-$(target-os)-$(toolset-version)? This could fix all
the names of clang/gcc/intel compilers on Android/QNX/iOS platforms and
simplify the task of updating explicit-failures-markup.xml for a specific
toolchain+os

-- 
Best regards,
Antony Polukhin

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Hi,<br><br>Dmitry Moskalchuk from CrystaX is working on \
Android support for regression tests. He noted the problems with clang toolchain \
indication on Android:<span class="im"><div> <br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

BTW, if you&#39;ll look on<br>
<a href="http://boost.crystax.net/master/developer/summary.html" \
target="_blank">http://boost.crystax.net/master/developer/summary.html</a>, \
you&#39;ll see clang<br> toolchains indicated as &#39;clang-linux-3.4&#39; and \
&#39;clang-linux-3.5&#39;. It goes<br> from the fact that Boost build scripts suppose \
there are just two types<br> of clang - clang-darwin and clang-linux, and switch \
between them based<br> on host OS condition, which is wrong. It should be based on \
target OS.<br> Look here:<br>
<a href="https://github.com/boostorg/build/blob/develop/src/tools/clang.jam" \
target="_blank">https://github.com/boostorg/build/blob/develop/src/tools/clang.jam</a>. \
I<br> suppose there should be smth like this:<br>
<br>
if $(target-os) = darwin<br>
      toolset.using clang-darwin .....<br>
else if $(target-os) = linux<br>
      toolset.using clang-linux ...<br>
else if $(target-os) = android<br>
      toolset.using clang-android ....<br>
<br>
Or smth like that. I don&#39;t know bjam syntax good, so it&#39;s just to<br>
indicate my idea. I&#39;d be appreciate if you could fix this while I&#39;m<br>
finishing with scripts refactoring.<br></blockquote><div>  </div></span></div>Could \
someone take a look into this issue and provide some fixes?<br><br></div>Probably the \
better solution would be to construct toolchain name \
from<br>$(toolset-base-name)-$(target-os)-$(toolset-version)? This could fix all the \
names of clang/gcc/intel compilers on Android/QNX/iOS platforms and simplify the task \
of updating explicit-failures-markup.xml for a specific \
toolchain+os<br><br><div><div><div>-- <br><div class="gmail_signature">Best \
regards,<br>Antony Polukhin</div> </div></div></div></div>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic