mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 05:14:10 +02:00
Fix construction of arArgs in IDE.BuildContext.QueueProjectGNUArchive on Windows
This commit is contained in:
parent
19b31e1dfa
commit
94447c558e
1 changed files with 14 additions and 2 deletions
|
@ -249,7 +249,13 @@ namespace IDE
|
||||||
}
|
}
|
||||||
else
|
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)
|
void AddObject(StringView obj)
|
||||||
{
|
{
|
||||||
|
@ -257,7 +263,13 @@ namespace IDE
|
||||||
return;
|
return;
|
||||||
|
|
||||||
arArgs.Append(" ");
|
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;
|
bool inQuote = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue