|
17 | 17 |
|
18 | 18 | (copy_files# backend/debug/*.ml{,i})
|
19 | 19 |
|
| 20 | +(copy_files# backend/debug/dwarf/dwarf_ocaml/*.ml{,i}) |
| 21 | + |
20 | 22 | (copy_files# backend/internal_assembler/*.ml{,i})
|
21 | 23 |
|
22 | 24 | (copy_files# backend/regalloc/*.ml{,i})
|
|
271 | 273 | available_regs
|
272 | 274 | reg_with_debug_info
|
273 | 275 | compute_ranges
|
| 276 | + ;; asmcomp/debug/dwarf/dwarf_ocaml |
| 277 | + ;; This code has a lot of dependencies into ocamloptcomp, so we just |
| 278 | + ;; build it as part of that library. |
| 279 | + dwarf |
| 280 | + dwarf_compilation_unit |
| 281 | + dwarf_concrete_instances |
| 282 | + dwarf_state |
274 | 283 | ;; driver/
|
275 | 284 | opterrors
|
276 | 285 | optcompile
|
|
288 | 297 | flambda_backend_utils
|
289 | 298 | flambda2_identifiers
|
290 | 299 | flambda2_cmx
|
291 |
| - dwarf_ocaml |
292 | 300 | compiler_owee
|
293 |
| - gc_timings)) |
| 301 | + gc_timings |
| 302 | + dwarf_low |
| 303 | + dwarf_high)) |
294 | 304 |
|
295 | 305 | (library
|
296 | 306 | (name flambda_backend_common)
|
|
348 | 358 | (backend bisect_ppx))
|
349 | 359 | (flags
|
350 | 360 | (:standard -principal))
|
351 |
| - (ocamlopt_flags (:standard -runtime-variant nnp)) |
| 361 | + (ocamlopt_flags |
| 362 | + (:standard -runtime-variant nnp)) |
352 | 363 | (libraries
|
353 | 364 | flambda_backend_driver
|
354 | 365 | memtrace
|
|
397 | 408 | %{dep:backend/asm_targets/asm_targets.a}
|
398 | 409 | %{dep:backend/debug/dwarf/dwarf_low/dwarf_low.a}
|
399 | 410 | %{dep:backend/debug/dwarf/dwarf_high/dwarf_high.a}
|
400 |
| - %{dep:backend/debug/dwarf/dwarf_ocaml/dwarf_ocaml.a} |
401 | 411 | %{dep:flambda_backend_common.a}
|
402 | 412 | %{dep:utils/flambda_backend_utils.a}
|
403 | 413 | %{dep:middle_end/flambda2/import/flambda2_import.a}
|
|
434 | 444 | %{dep:backend/asm_targets/asm_targets.cma}
|
435 | 445 | %{dep:backend/debug/dwarf/dwarf_low/dwarf_low.cma}
|
436 | 446 | %{dep:backend/debug/dwarf/dwarf_high/dwarf_high.cma}
|
437 |
| - %{dep:backend/debug/dwarf/dwarf_ocaml/dwarf_ocaml.cma} |
438 | 447 | %{dep:flambda_backend_common.cma}
|
439 | 448 | %{dep:utils/flambda_backend_utils.cma}
|
440 | 449 | %{dep:middle_end/flambda2/import/flambda2_import.cma}
|
|
471 | 480 | %{dep:backend/asm_targets/asm_targets.cmxa}
|
472 | 481 | %{dep:backend/debug/dwarf/dwarf_low/dwarf_low.cmxa}
|
473 | 482 | %{dep:backend/debug/dwarf/dwarf_high/dwarf_high.cmxa}
|
474 |
| - %{dep:backend/debug/dwarf/dwarf_ocaml/dwarf_ocaml.cmxa} |
475 | 483 | %{dep:flambda_backend_common.cmxa}
|
476 | 484 | %{dep:utils/flambda_backend_utils.cmxa}
|
477 | 485 | %{dep:middle_end/flambda2/import/flambda2_import.cmxa}
|
|
519 | 527 | (external/gc-timings/libgc_timings_stubs.a
|
520 | 528 | as
|
521 | 529 | compiler-libs/libgc_timings_stubs_native.a)
|
522 |
| - |
523 | 530 | ; for special_dune compat
|
524 | 531 | (ocamloptcomp_with_flambda2.cma as compiler-libs/ocamloptcomp.cma)
|
525 | 532 | (ocamloptcomp_with_flambda2.cmxa as compiler-libs/ocamloptcomp.cmxa)
|
|
541 | 548 | backend/asm_targets/.asm_targets.objs/byte/asm_targets.{cmi,cmo,cmt})
|
542 | 549 | (glob_files_rec
|
543 | 550 | backend/asm_targets/.asm_targets.objs/native/asm_targets.cmx)
|
544 |
| - (glob_files |
545 |
| - middle_end/flambda2/.flambda2objs/byte/flambda2.{cmi,cmt}) |
| 551 | + (glob_files middle_end/flambda2/.flambda2objs/byte/flambda2.{cmi,cmt}) |
546 | 552 | (glob_files
|
547 | 553 | middle_end/flambda2/to_cmm/.flambda2_to_cmm.objs/byte/flambda2_to_cmm{,__To_cmm}.{cmi,cmt})
|
548 | 554 | (glob_files
|
|
555 | 561 | backend/debug/dwarf/dwarf_flags/.dwarf_flags.objs/native/dwarf_flags.cmx
|
556 | 562 | (glob_files
|
557 | 563 | backend/debug/dwarf/dwarf_low/.dwarf_low.objs/byte/*.{cmi,cmo,cmt})
|
558 |
| - (glob_files |
559 |
| - backend/debug/dwarf/dwarf_low/.dwarf_low.objs/native/*.cmx) |
| 564 | + (glob_files backend/debug/dwarf/dwarf_low/.dwarf_low.objs/native/*.cmx) |
560 | 565 | (glob_files
|
561 | 566 | backend/debug/dwarf/dwarf_high/.dwarf_high.objs/byte/*.{cmi,cmo,cmt})
|
562 |
| - (glob_files |
563 |
| - backend/debug/dwarf/dwarf_high/.dwarf_high.objs/native/*.cmx) |
564 |
| - (glob_files |
565 |
| - backend/debug/dwarf/dwarf_ocaml/.dwarf_ocaml.objs/byte/*.{cmi,cmo,cmt}) |
566 |
| - (glob_files |
567 |
| - backend/debug/dwarf/dwarf_ocaml/.dwarf_ocaml.objs/native/*.cmx) |
568 |
| - (glob_files |
569 |
| - external/owee/.compiler_owee.objs/byte/*.{cmi,cmo,cmt,cmti}) |
570 |
| - (glob_files |
571 |
| - external/owee/.compiler_owee.objs/native/*.cmx) |
| 567 | + (glob_files backend/debug/dwarf/dwarf_high/.dwarf_high.objs/native/*.cmx) |
| 568 | + (glob_files backend/debug/dwarf/dwarf_ocaml/.dwarf_ocaml.objs/native/*.cmx) |
| 569 | + (glob_files external/owee/.compiler_owee.objs/byte/*.{cmi,cmo,cmt,cmti}) |
| 570 | + (glob_files external/owee/.compiler_owee.objs/native/*.cmx) |
572 | 571 | (glob_files
|
573 | 572 | external/gc-timings/.gc_timings.objs/byte/gc_timings.{cmi,cmti})
|
574 | 573 | external/gc-timings/.gc_timings.objs/native/gc_timings.cmx)
|
575 | 574 | (action
|
576 |
| - (with-stdout-to compiler-libs-installation.sexp |
| 575 | + (with-stdout-to |
| 576 | + compiler-libs-installation.sexp |
577 | 577 | (run tools/gen_compiler_libs_installation.exe %{deps}))))
|
578 | 578 |
|
579 | 579 | (install
|
580 | 580 | (section lib)
|
581 | 581 | (package ocaml)
|
582 |
| - (files (include compiler-libs-installation.sexp))) |
| 582 | + (files |
| 583 | + (include compiler-libs-installation.sexp))) |
0 commit comments