summaryrefslogtreecommitdiff
path: root/bytecomp
diff options
context:
space:
mode:
authorDavid Allsopp <david.allsopp@metastack.com>2022-03-14 16:03:36 +0100
committerGabriel Scherer <gabriel.scherer@gmail.com>2022-03-14 16:13:55 +0100
commit645b29c3a542eec666aba0adf5be1d02835f1bfd (patch)
treeca8cecf702643c745339315f2904f46a6721555c /bytecomp
parentfc846d0d1c5fdea5eab4ae07f2afb34322394b0e (diff)
downloadocaml-645b29c3a542eec666aba0adf5be1d02835f1bfd.tar.gz
also support quotes in -use-runtime paths
Diffstat (limited to 'bytecomp')
-rw-r--r--bytecomp/bytelink.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/bytecomp/bytelink.ml b/bytecomp/bytelink.ml
index 49cb963bcf..d6a034a9b2 100644
--- a/bytecomp/bytelink.ml
+++ b/bytecomp/bytelink.ml
@@ -346,7 +346,7 @@ let link_bytecode ?final_name tolink exec_name standalone =
(* shebang mustn't exceed 128 including the #! and \0 *)
if String.length runtime > 125 || String.contains runtime ' ' then
"/bin/sh\n\
- exec \"" ^ runtime ^ "\" \"$0\" \"$@\""
+ exec " ^ Filename.quote runtime ^ " \"$0\" \"$@\""
else
runtime
in