Original bug ID: 6181 Reporter: chengang Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2014-09-28T07:48:48Z) Resolution: fixed Priority: normal Severity: minor Platform: Windows OS: Windows OS Version: 7+ Version: 4.01.0 Target version: 4.02.1+dev Fixed in version: 4.02.1+dev Category: configure and build/install Tags: patch Monitored by: chengang @gasche@ygrek@jmeber
MSVC compiler option can begin with '-' or '/', i.e. "cl -nologo ..." is the same as "cl /nologo ...", usually using either works.
But in msys, it seems '/' is somehow reinterpreted, so the build will fail, but changing '/' to '-' will work.
Steps to reproduce
Install VS2010 (or VS2012), msys and flexdll
Start a VS2010 (or VS2012) command line
Navigate to c:\msys, start msys shell
4, In msys shell, navigate to ocaml source code folder c:\ocaml_trunk
Use build process described in README.win32
The build will fail.
Apply the attached diff to source code (from SVN trunk), build again, it will work.