I need to pass /DEF:c:filepathmyLib.def" command line option from a bash script to MS compiler/linker. The path is generated as part of build process by a bash script. Basically, the argument that my script passes is:
-DEF:/c/filepath/myLib.def
MSYS path conversion can't handle it properly because it doesn't understand /DEF:
part. It works if I do
-DEF=/c/filepath/myLib.def
but then ms tools don't understand this parameter. In short, what's the proper way to write that parameter in MSYS bash so that it converts it to proper argument?
On cygwin I could use cygpath, but there is no equivalent, because somebody from msys thinks that it's not needed (even if there are scripts for cygwin that uses cygpath).
question from:
https://stackoverflow.com/questions/12015348/msys-path-conversion-or-cygpath-for-msys 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…