Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Expand tools.build:compiler_executables to accept other common executables like strip #17023

Open
1 task
ericriff opened this issue Sep 18, 2024 · 0 comments

Comments

@ericriff
Copy link

What is your suggestion?

Currently this conf only accepts some tools, like the C and C++ compilers. This is usually enough but it doesn't cover all use cases.
For example ffmpeg has to get strip from the env and if it is not set, crosscompilation fails.
https://github.com/conan-io/conan-center-index/blob/master/recipes/ffmpeg/all/conanfile.py#L630

STRIP   ffprobe
strip: Unable to recognise the format of the input file `ffprobe_g'

Granted, I can add and env variable to my profile

tools.build:compiler_executables = {"cpp": "arm-poky-linux-gnueabi-g++", "c": "arm-poky-linux-gnueabi-gcc"}

[buildenv]
ffmpeg/*:STRIP=arm-poky-linux-gnueabi-strip

But this splits the information of the names in two, which is confusing and bugprone. If I ever update my toolchain I have to remember to update the names in multiple places.

I think it would be ideal to be able to set the names of all the core tools provided by the toolchain (cc, cpp, cxx, strip, ar, etc) using tools.build:compiler_executables

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant