1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-27 20:18:01 +02:00

Merge pull request #1790 from eveningstarinc/hunterbridges/Issue-1789

Fix construction of `arArgs` in `IDE.BuildContext.QueueProjectGNUArchive` on Windows
This commit is contained in:
Brian Fiete 2023-02-07 16:09:20 -05:00 committed by GitHub
commit 1f007ba771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,13 @@ namespace IDE
}
else
{
arArgs.AppendF($"-qc {targetPath}");
arArgs.AppendF($"-qc ");
String fixedTargetPath = scope .(targetPath);
IDEUtils.FixFilePath(fixedTargetPath);
#if BF_PLATFORM_WINDOWS
fixedTargetPath.Replace("\\", "\\\\");
#endif
IDEUtils.AppendWithOptionalQuotes(arArgs, fixedTargetPath);
void AddObject(StringView obj)
{
@ -257,7 +263,13 @@ namespace IDE
return;
arArgs.Append(" ");
arArgs.Append(obj);
String fixedObjPath = scope .(obj);
IDEUtils.FixFilePath(fixedObjPath);
#if BF_PLATFORM_WINDOWS
fixedObjPath.Replace("\\", "\\\\");
#endif
IDEUtils.AppendWithOptionalQuotes(arArgs, fixedObjPath);
}
bool inQuote = false;