Skip to content

Commit

Permalink
Fix back-slash in archive action.
Browse files Browse the repository at this point in the history
Unlike all the other actions in gcc, the archive action was producing platform paths instead of regular slash paths. The platform paths on Windows (\) cause problems when placed in response files as gcc/mingw interpret them as escape markers. This adds the :T qualifier to normalize the slashes.

fixes #324 
fixes #352 
fixes boostorg/url#779
  • Loading branch information
grafikrobot authored Dec 21, 2023
1 parent 5dca296 commit 2474be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/gcc.jam
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ rule archive ( targets * : sources * : properties * )
#
actions piecemeal archive
{
"$(.AR)" $(AROPTIONS) $(.ARFLAGS) "$(<)" @($(<[-1]:T).rsp:O=FC:<=@":>=":E="$(>)")
"$(.AR)" $(AROPTIONS) $(.ARFLAGS) "$(<)" @($(<[-1]:T).rsp:O=FC:<=@":>=":E="$(>:T)")
}

###
Expand Down

1 comment on commit 2474be5

@pdimov
Copy link
Contributor

@pdimov pdimov commented on 2474be5 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in commit message - this fixes 342 and not 324.

Please sign in to comment.