You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4720 Reporter: matt Assigned to: ertai Status: closed (set by @xavierleroy on 2011-05-29T10:20:02Z) Resolution: fixed Priority: normal Severity: minor Version: 3.11.0 Fixed in version: 3.11.2+dev Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues Monitored by:@ygrek
Bug description
This leads to unnecessary rebuild (targets that are producing dlls).
Workaround:
Add
let () = if Sys.os_type = "Win32" then Options.ext_dll := "dll"
in myocamlbuild.ml
Additional information
Patch attempt. A cleaner solution would certainly to read ext_dll from a file produced by ./configure
--- a/ocamlbuild/options.ml
+++ b/ocamlbuild/options.ml
@@ -78,7 +78,7 @@ let show_documentation = ref false
let recursive = ref false
let ext_lib = ref "a"
let ext_obj = ref "o"
-let ext_dll = ref "so"
+let ext_dll = ref (if Sys.os_type = "Win32" then "dll" else "so")
let targets_internal = ref []
let ocaml_libs_internal = ref []
Salutations
The text was updated successfully, but these errors were encountered:
Original bug ID: 4720
Reporter: matt
Assigned to: ertai
Status: closed (set by @xavierleroy on 2011-05-29T10:20:02Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0
Fixed in version: 3.11.2+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @ygrek
Bug description
This leads to unnecessary rebuild (targets that are producing dlls).
Workaround:
Add
let () = if Sys.os_type = "Win32" then Options.ext_dll := "dll"
in myocamlbuild.ml
Additional information
Patch attempt. A cleaner solution would certainly to read ext_dll from a file produced by ./configure
--- a/ocamlbuild/options.ml
+++ b/ocamlbuild/options.ml
@@ -78,7 +78,7 @@ let show_documentation = ref false
let recursive = ref false
let ext_lib = ref "a"
let ext_obj = ref "o"
-let ext_dll = ref "so"
+let ext_dll = ref (if Sys.os_type = "Win32" then "dll" else "so")
let targets_internal = ref []
let ocaml_libs_internal = ref []
Salutations
The text was updated successfully, but these errors were encountered: