summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-20 13:03:22 -0700
committerGitHub <noreply@github.com>2023-03-20 13:03:22 -0700
commit51834ff2ec4fba7fa4d62b04365c1c9c5b6700f1 (patch)
tree907ce22d3122cad67bb8e25945f07a659f91c226
parent27ecf3261ed117fdba1987dbb146e2164ed821e9 (diff)
downloadruby-51834ff2ec4fba7fa4d62b04365c1c9c5b6700f1.tar.gz
YJIT: Make dev_nodebug closer to dev (#7570)
-rw-r--r--configure.ac1
-rw-r--r--yjit/Cargo.toml7
2 files changed, 5 insertions, 3 deletions
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]