aboutsummaryrefslogtreecommitdiff
path: root/kernel/dune
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-03-01 19:31:50 +0100
committerEmilio Jesus Gallego Arias2019-03-01 19:31:50 +0100
commit1e03d1e666e74b95b9936bfdd6f04d54c607c37f (patch)
tree01fa5d89b158dd019cca34b4b5aab2b7e46a0a6d /kernel/dune
parent74016bb28f1176aa9dce5f897f434729c2c99c93 (diff)
parent8541a43c053d659196992f4e990ec317cd199af8 (diff)
Merge PR #9624: [Kernel] Simpler generation of opcode files
Ack-by: SkySkimmer Reviewed-by: Zimmi48 Reviewed-by: ejgallego Ack-by: gares Reviewed-by: ppedrot Ack-by: rgrinberg Ack-by: vbgl
Diffstat (limited to 'kernel/dune')
-rw-r--r--kernel/dune9
1 files changed, 6 insertions, 3 deletions
diff --git a/kernel/dune b/kernel/dune
index 1f2d696a36..a8a87a3e95 100644
--- a/kernel/dune
+++ b/kernel/dune
@@ -3,13 +3,16 @@
(synopsis "The Coq Kernel")
(public_name coq.kernel)
(wrapped false)
- (modules (:standard \ uint63_x86 uint63_amd64 write_uint63))
+ (modules (:standard \ genOpcodeFiles uint63_x86 uint63_amd64 write_uint63))
(libraries lib byterun))
+(executable
+ (name genOpcodeFiles)
+ (modules genOpcodeFiles))
+
(rule
(targets copcodes.ml)
- (deps (:h-file byterun/coq_instruct.h) make-opcodes make_opcodes.sh)
- (action (bash "./make_opcodes.sh %{h-file} %{targets}")))
+ (action (with-stdout-to %{targets} (run ./genOpcodeFiles.exe copml))))
(executable
(name write_uint63)