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
In the same way, compiling in bytecode with "-custom", with a target containing a dot (foo.bar.exe) makes it impossible to run the program from cmd.exe.
I propose to implement caml_executable_name under Windows using GetModuleFileName(NULL, _, _). (Another option would be to rely on _pgmptr / _get_pgmptr, but its documention on MSDN is quite scary about its semantics when the program is not called from the command line.)
Original bug ID: 4719
Reporter: bartjacobs
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:19:59Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0
Fixed in version: 4.02.0+dev
Category: platform support (windows, cross-compilation, etc)
Monitored by: bartjacobs
Bug description
Context: Ocaml 3.11.0 on Windows Vista SP1
mybug.ml:
print_endline Sys.executable_name
The last output is wrong.
The text was updated successfully, but these errors were encountered: