Skip to content

Commit b5be835

Browse files
committed
Compile the tests with -g
otherwise all [raise] are compiled to [raise_notrace]
1 parent f0d8749 commit b5be835

File tree

1 file changed

+9
-9
lines changed
  • tests/backend/checkmach

1 file changed

+9
-9
lines changed

tests/backend/checkmach/dune

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
(alias runtest)
66
(enabled_if (= %{context_name} "main"))
77
(deps s.ml t.ml)
8-
(action (run %{bin:ocamlopt.opt} %{deps} -c -alloc-check -O3)))
8+
(action (run %{bin:ocamlopt.opt} %{deps} -g -c -alloc-check -O3)))
99

1010
(rule
1111
(alias runtest)
1212
(enabled_if (= %{context_name} "main"))
1313
(deps t5.ml test_assume.ml)
14-
(action (run %{bin:ocamlopt.opt} %{deps} -c -alloc-check -O3)))
14+
(action (run %{bin:ocamlopt.opt} %{deps} -g -c -alloc-check -O3)))
1515

1616
(rule
1717
(alias runtest)
@@ -21,7 +21,7 @@
2121
;; (or %{ocaml-config:flambda} %{ocaml-config:flambda2})
2222
))
2323
(deps test_flambda.ml)
24-
(action (run %{bin:ocamlopt.opt} %{deps} -c -alloc-check -O3)))
24+
(action (run %{bin:ocamlopt.opt} %{deps} -g -c -alloc-check -O3)))
2525

2626
(rule
2727
(enabled_if (= %{context_name} "main"))
@@ -31,7 +31,7 @@
3131
(with-outputs-to fail1.output.corrected
3232
(pipe-outputs
3333
(with-accepted-exit-codes 2
34-
(run %{bin:ocamlopt.opt} %{ml} -color never -error-style short -c -alloc-check -O3))
34+
(run %{bin:ocamlopt.opt} %{ml} -g -color never -error-style short -c -alloc-check -O3))
3535
(run "./filter.sh")
3636
))))
3737

@@ -49,7 +49,7 @@
4949
(with-outputs-to fail2.output.corrected
5050
(pipe-outputs
5151
(with-accepted-exit-codes 2
52-
(run %{bin:ocamlopt.opt} %{ml} -color never -error-style short -c -alloc-check -O3))
52+
(run %{bin:ocamlopt.opt} %{ml} -g -color never -error-style short -c -alloc-check -O3))
5353
(run "./filter.sh")
5454
))))
5555

@@ -67,7 +67,7 @@
6767
(with-outputs-to fail3.output.corrected
6868
(pipe-outputs
6969
(with-accepted-exit-codes 2
70-
(run %{bin:ocamlopt.opt} %{ml} -color never -error-style short -c -alloc-check -O3))
70+
(run %{bin:ocamlopt.opt} %{ml} -g -color never -error-style short -c -alloc-check -O3))
7171
(run "./filter.sh")
7272
))))
7373

@@ -86,7 +86,7 @@
8686
(with-outputs-to fail4.output.corrected
8787
(pipe-outputs
8888
(with-accepted-exit-codes 2
89-
(run %{bin:ocamlopt.opt} %{ml} -color never -error-style short -c -alloc-check -O3))
89+
(run %{bin:ocamlopt.opt} %{ml} -g -color never -error-style short -c -alloc-check -O3))
9090
(run "./filter.sh")
9191
))))
9292

@@ -104,7 +104,7 @@
104104
(with-outputs-to fail5.output.corrected
105105
(pipe-outputs
106106
(with-accepted-exit-codes 2
107-
(run %{bin:ocamlopt.opt} %{ml} -color never -error-style short -c -alloc-check -O3))
107+
(run %{bin:ocamlopt.opt} %{ml} -g -color never -error-style short -c -alloc-check -O3))
108108
(run "./filter.sh")
109109
))))
110110

@@ -123,7 +123,7 @@
123123
(targets test_attribute_error_duplicate.output.corrected)
124124
(deps test_attribute_error_duplicate.ml)
125125
(action (with-outputs-to test_attribute_error_duplicate.output.corrected
126-
(run %{bin:ocamlopt.opt} %{deps} -color never -error-style short -c -alloc-check -O3))))
126+
(run %{bin:ocamlopt.opt} %{deps} -g -color never -error-style short -c -alloc-check -O3))))
127127

128128
(rule
129129
(alias runtest)

0 commit comments

Comments
 (0)