conan-io / conan-io/conan-toolchains

Keep `compiler.version` and used `emsdk` version consistent

Open
#10 9 comments 0 reactions 1 assignee Claimed by @memsharded View on GitHub
Dominant language
Python
Stars
8
Forks
6
PR merge metrics
No merged PRs in 30d

Description

It seems that currently we manually need to keep the `compiler.version` setting consistent with the `emsdk` version in `tool_requires`. With https://github.com/conan-io/conan/pull/19592, `detect_api` will have `detect_emcc_compiler`, but this will be ran too early. Would there be a way to automatically set `compiler.version` based on the version of the `emsdk` tool that is used?

If not, that would be unfortunate, because then there is no possibility of using a version pattern like `emsdk/[~5]`, because the value of `compiler.version` will become outdated.
Maybe we could at least check in the recipe that its version is consistent with `compiler.version`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.