Skip to content

Commit 068725c

Browse files
committed
Reenable backtrace test in bytecode mode with grand dune hack
1 parent f4e08c0 commit 068725c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/dune

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,14 @@
9898
(name backtrace)
9999
(libraries domainslib)
100100
(modules backtrace)
101-
(enabled_if (and (= %{arch_sixtyfour} true) (<> %{architecture} power) (<> %{architecture} s390x))))
102-
;; disabled temporarily on bytecode switches https://github.com/ocaml/dune/issues/7845
101+
(modes byte native))
102+
;; byte_complete .exes don't include debug+trace info https://github.com/ocaml/dune/issues/7845
103+
;; so on a bytecode switch/platform we build a plain bytecode version w/trace info
104+
;; and rename it to .exe
105+
(rule
106+
(target backtrace.exe)
107+
(action (copy backtrace.bc backtrace.exe))
108+
(enabled_if (= %{bin-available:ocamlopt} false)))
103109

104110
(test
105111
(name off_by_one)

0 commit comments

Comments
 (0)