-
Notifications
You must be signed in to change notification settings - Fork 469
dune exec needs to add .exe on Windows #3322
Copy link
Copy link
Open
Labels
windowsIssues that relate to Dune on Microsoft WindowsIssues that relate to Dune on Microsoft Windows
Description
dune exec -- foo on Windows needs to consider dune exec -- foo.exe when working out if there is a program to (re)compile. At the moment, the behaviour is mixed:
- if
_build/install/default/bin/foo.exehas previously been built, then you get a potentially stale execution offooif its sources have changed - if
_build/install/default/bin/foo.exehasn't previously been built, then you get an error.
Specifying dune exec -- foo.exe works consistently, but this has two problems:
- It's surprising on Windows (unless the user has done something really weird with the
PATHEXTenvironment variable) - It's not good for a cross-platform set-up since
dune exec -- foo.exewill fail on a (Unix) system which installsfoo.exeasfoowith the executable bit set.
(Dune 2.4.0; Windows mingw32; OCaml 4.08.1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
windowsIssues that relate to Dune on Microsoft WindowsIssues that relate to Dune on Microsoft Windows