Stream: cranelift

Topic: How to enable the isle-in-source-tree feature?


view this post on Zulip ping ping (Mar 25 2025 at 13:53):

I'm trying to debug ISLE-generated code by enabling the isle-in-source-tree feature for cranelift-codegen, as mentioned in the documentation. However, when running it, I encounter the following error:

error: the package 'cranelift-codegen' does not contain this feature: isle-in-source-tree

After searching through the project, I couldn't find any feature named isle-in-source-tree in the codebase.

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant - bytecodealliance/wasmtime

view this post on Zulip bjorn3 (Mar 25 2025 at 14:25):

That flag was removed in https://github.com/bytecodealliance/wasmtime/pull/9633. Instead you can set the ISLE_SOURCE_DIR env var to some location where you want the generated code to be written to when compiling cranelift-codegen.

Per #9625 and #9588, a downstream user of Cranelift was misusing the isle-in-source-tree feature, enabling it indiscriminately even in published crates (wasmerio/wasmer#5202). This went against the...

view this post on Zulip Chris Fallin (Mar 25 2025 at 16:00):

Posted https://github.com/bytecodealliance/wasmtime/pull/10466 just now to update the docs. Sorry about the confusion @ping ping !

Add a cargo:rerun-if-env-changed clause for the ISLE_SOURCE_DIR environment variable to properly rebuild if the config changes. Update docs to point to the new env-var-based approach rather than th...

view this post on Zulip ping ping (Mar 26 2025 at 09:22):

@Chris Fallin @bjorn3 Thanks for the quick fix! Really appreciate the documentation update and your help clarifying this.


Last updated: Apr 07 2025 at 11:03 UTC