It seems that currently we manually need to keep the compiler.version setting consistent with the emsdk version in tool_requires. With conan-io/conan#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?
It seems that currently we manually need to keep the
compiler.versionsetting consistent with theemsdkversion intool_requires. With conan-io/conan#19592,detect_apiwill havedetect_emcc_compiler, but this will be ran too early. Would there be a way to automatically setcompiler.versionbased on the version of theemsdktool 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 ofcompiler.versionwill become outdated.Maybe we could at least check in the recipe that its version is consistent with
compiler.version?