Skip to content

Commit 3c55e1f

Browse files
committed
Fix for the linking errors happening at the first full recompilation/linking after a "hot reload compilation".
Also potentially fixing a couple of incremental compilation failures.
1 parent 4070f0d commit 3c55e1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FASTBuild.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class FASTBuild : ActionExecutor
2626

2727
// Location of the shared cache, it could be a local or network path (i.e: @"\\DESKTOP-BEAST\FASTBuildCache").
2828
// Only relevant if bEnableCaching is true;
29-
private string CachePath = ""; //@"\\DESKTOP-BEAST\FASTBuildCache";
29+
private string CachePath = ""; //@"\\YourCacheFolderPath";
3030

3131
public enum eCacheMode
3232
{
@@ -823,9 +823,9 @@ private void AddLinkAction(List<Action> Actions, int ActionIndex, List<int> Depe
823823
{
824824
AddText(string.Format("\t.Libraries = {{ '{0}' }} \n", ResponseFilePath));
825825
if (IsMSVC())
826-
AddText(string.Format("\t.LinkerOptions = '@\"%1\" /Out:\"%2\" {0}' \n", OtherCompilerOptions));
826+
AddText(string.Format("\t.LinkerOptions = '/TLBOUT:\"%1\" /Out:\"%2\" @\"{0}\" ' \n", ResponseFilePath)); // The TLBOUT is a huge bodge to consume the %1.
827827
else
828-
AddText(string.Format("\t.LinkerOptions = '-o \"%2\" @\"%1\" {0}' \n", OtherCompilerOptions));
828+
AddText(string.Format("\t.LinkerOptions = '-o \"%2\" @\"{0}\" {1} -MQ \"%1\"' \n", ResponseFilePath, OtherCompilerOptions)); // The MQ is a huge bodge to consume the %1.
829829
}
830830
else
831831
{

0 commit comments

Comments
 (0)