From 14a909c315f92b97ff8a047108dc7680002589c6 Mon Sep 17 00:00:00 2001 From: Hugo Heuzard Date: Mon, 11 Nov 2024 15:18:02 +0100 Subject: [PATCH] Jsoo: avoid partial application Signed-off-by: Hugo Heuzard --- src/dune_rules/jsoo/jsoo_rules.ml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/dune_rules/jsoo/jsoo_rules.ml b/src/dune_rules/jsoo/jsoo_rules.ml index f4a8fb173e1..4841a0c3836 100644 --- a/src/dune_rules/jsoo/jsoo_rules.ml +++ b/src/dune_rules/jsoo/jsoo_rules.ml @@ -293,7 +293,7 @@ let jsoo_runtime_files ~(mode : Js_of_ocaml.Mode.t) libs = (Lib.info t)) ;; -let standalone_runtime_rule ~mode cc ~runtime_files ~target ~flags = +let standalone_runtime_rule ~mode cc ~runtime_files ~target ~flags ~sourcemap = let dir = Compilation_context.dir cc in let sctx = Compilation_context.super_context cc in let config = @@ -322,9 +322,20 @@ let standalone_runtime_rule ~mode cc ~runtime_files ~target ~flags = ~directory_targets:[] ~spec ~config:(Some config) + ~sourcemap ;; -let exe_rule ~mode cc ~linkall ~runtime_files ~src ~target ~directory_targets ~flags = +let exe_rule + ~mode + cc + ~linkall + ~runtime_files + ~src + ~target + ~directory_targets + ~flags + ~sourcemap + = let dir = Compilation_context.dir cc in let sctx = Compilation_context.super_context cc in let libs = Compilation_context.requires_link cc in @@ -364,6 +375,7 @@ let exe_rule ~mode cc ~linkall ~runtime_files ~src ~target ~directory_targets ~f ~directory_targets ~flags ~config:None + ~sourcemap ;; let with_js_ext ~mode s = @@ -406,6 +418,7 @@ let link_rule ~flags ~linkall ~link_time_code_gen + ~sourcemap = let sctx = Compilation_context.super_context cc in let dir = Compilation_context.dir cc in @@ -475,6 +488,7 @@ let link_rule ~directory_targets ~flags ~config:None + ~sourcemap ;; let build_cm' sctx ~dir ~in_context ~mode ~src ~target ~config ~sourcemap =