Git Product home page Git Product logo

Comments (7)

ruslo avatar ruslo commented on July 18, 2024

How

> ANDROID_NDK_VERSION=r10e ANDROID_NATIVE_API_LEVEL=21 ANDROID_ABI=mips build.py --toolchain android

is better than just

> build.py --toolchain android-ndk-r10e-api-21-mips

?

from polly.

xsacha avatar xsacha commented on July 18, 2024

When you are targeting API 24 or using NDK 13 or any other combination (there are 100s - maybe 1000s).

Then I want to target clang as well. Do we produce 1000 more toolchain files instead of setting variable?

from polly.

ruslo avatar ruslo commented on July 18, 2024

Do we produce 1000 more toolchain files instead of setting variable?

You're using all 1000 variants? Combinatorial explosion discussed here and solution is out of scope of Polly functional (though I'm not 100% sure what it will looks like). For now workaround is to add only toolchains that you're really using.

from polly.

xsacha avatar xsacha commented on July 18, 2024

So every time I update my NDK, I should create new toolchains for every ABI I target (eg. armeabi-v7a, armeabi-v7a with NEON, arm64-v8a, x86_64)? Should I also commit it?
I have a machine with r13 and another with r13b.

What about local changes I need to make for toolchain such as exceptions/rtti? I edit every toolchain for this or create new one?

from polly.

ruslo avatar ruslo commented on July 18, 2024

So every time I update my NDK, I should create new toolchains for every ABI I target (eg. armeabi-v7a, armeabi-v7a with NEON, arm64-v8a, x86_64)?

Just like every time iOS version changed (ios-*), Visual Studio generator released (vs-*), OSX upgrade (osx-*), etc.

Should I also commit it?

You mean send pull request? Yes, if you want :)

What about local changes I need to make for toolchain such as exceptions/rtti?

It's a topic for separate discussion.

from polly.

xsacha avatar xsacha commented on July 18, 2024

Since r13, the NDK version can be detected by reading the $ANDROID_NDK/source.properties file. This is how the Android NDK toolchain does it too.
This should help remove one combination in future at least.
They could be named like so: android-ndk-r13+-api-21-mips

from polly.

ruslo avatar ruslo commented on July 18, 2024

Since r13, the NDK version can be detected by reading the $ANDROID_NDK/source.properties file

I guess this will not work for the cases when we need to have both r13x and r13y on the same machine.

from polly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.