Skip to content

How to compile the codegen in debug mode? #1603

@SteveBoxite

Description

@SteveBoxite

I would like to extend the functionality of Cranelift and test the implemented features with some example Rust programs I have written. To do so, I need to be able to run cargo-clif in a debugger.

Is there an official way to compile the toolchain (cranelift module + rustc_codegen) with debug information?The y.sh file does not provide an argument to build the toolchain with "dev" profile and when I manually replace "release" with "debug" in build_sysroot.rs and build_backend.rs, the output cargo-clif binary still lacks debug information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions