aboutsummaryrefslogtreecommitdiff
path: root/vernac
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-05-29 12:20:03 +0200
committerEmilio Jesus Gallego Arias2020-05-29 12:20:03 +0200
commitd75b889948fbfd5600d505ab823a0e6da2195af6 (patch)
tree85b5c543e8b5ab1c0cb87227d605725d8ebec36b /vernac
parent7c21e568501b16cc99ecd79afd9e26a912b89ca5 (diff)
parent19c8ac834c4f43b1fd0c49aad286a4e5bebf0ce5 (diff)
Merge PR #12421: Fixes for compilation without native dynlink
Reviewed-by: ejgallego Reviewed-by: ppedrot
Diffstat (limited to 'vernac')
-rw-r--r--vernac/mltop.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/vernac/mltop.ml b/vernac/mltop.ml
index d276a1ac35..c33b3d29f8 100644
--- a/vernac/mltop.ml
+++ b/vernac/mltop.ml
@@ -309,6 +309,9 @@ type ml_module_object = {
}
let add_module_digest m =
+ if not has_dynlink then
+ m, NoDigest
+ else
try
let file = file_of_name m in
let path, file = System.where_in_path ~warn:false !coq_mlpath_copy file in