diff --git a/configure.ac b/configure.ac index fbfbf00009..12bbcc3f73 100644 --- a/configure.ac +++ b/configure.ac @@ -3800,6 +3800,7 @@ AS_CASE(["${YJIT_SUPPORT}"], [dev_nodebug], [ rb_rust_target_subdir=dev_nodebug CARGO_BUILD_ARGS='--profile dev_nodebug --features stats,disasm' + AC_DEFINE(YJIT_STATS, 1) ], [stats], [ rb_rust_target_subdir=stats diff --git a/yjit/Cargo.toml b/yjit/Cargo.toml index d2d54edc78..c29ff41fd9 100644 --- a/yjit/Cargo.toml +++ b/yjit/Cargo.toml @@ -30,10 +30,11 @@ debug = true debug-assertions = true overflow-checks = true -[profile.stats] -inherits = "release" - [profile.dev_nodebug] +inherits = "dev" +debug = false + +[profile.stats] inherits = "release" [profile.release]