forked from ocaml-flambda/flambda-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdune
38 lines (36 loc) · 1.8 KB
/
dune
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;**************************************************************************
;* *
;* OCaml *
;* *
;* Thomas Refis, Jane Street Europe *
;* *
;* Copyright 2018 Jane Street Group LLC *
;* *
;* All rights reserved. This file is distributed under the terms of *
;* the GNU Lesser General Public License version 2.1, with the *
;* special exception on linking described in the file LICENSE. *
;* *
;**************************************************************************
(rule
(targets arch.ml arch.mli cfg_selection.ml CSE.ml proc.ml regalloc_stack_operands.ml reload.ml
selection.ml selection_utils.ml simd.ml simd_selection.ml simd_reload.ml simd_proc.ml
stack_check.ml)
(mode fallback)
(deps (glob_files amd64/*.ml)
(glob_files amd64/*.mli)
(glob_files arm64/*.ml)
(glob_files arm64/*.mli))
(action (bash "cp %{env:ARCH=amd64}/*.ml %{env:ARCH=amd64}/*.mli .")))
(rule
(targets emit.ml)
(mode fallback)
(deps amd64/emit.mlp
arm64/emit.mlp)
(action
(progn
(with-stdout-to contains-input-name
(bash "echo %{env:ARCH=amd64}/emit.mlp"))
(with-stdout-to %{targets}
(progn
(bash "echo \\# 1 \\\"`cat contains-input-name`\\\"")
(bash "%{dep:../tools/cvt_emit.exe} < `cat contains-input-name`"))))))