bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
75 stars 228 forks source link

`ar` response files under MinGW contain paths with backslashes, which fails #352

Closed pdimov closed 8 months ago

pdimov commented 8 months ago

As reported in https://github.com/boostorg/url/issues/779, the gcc.archive action creates response files in which the paths use backslashes as the separator, which the MinGW ar misinterprets as escapes.

The fix is to change the :E part of this line

https://github.com/bfgroup/b2/blob/5dca2965cb083060137498d6581fcbfb9522cfbc/src/tools/gcc.jam#L1094

from :E="$(>)" to :E="$(>:T)".

(I see that this has been reported before as https://github.com/bfgroup/b2/issues/342.)