Skip to content

Instantly share code, notes, and snippets.

@RCL
Created October 6, 2016 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RCL/89fea0107386da6599a76fb9198d07ae to your computer and use it in GitHub Desktop.
Save RCL/89fea0107386da6599a76fb9198d07ae to your computer and use it in GitHub Desktop.
Fix FixDeps
PostLinkAction.CommandArguments += ShellBinary + ExecuteSwitch + " \"" + FixDepsScript.AbsolutePath + "\" && ";
- string Touch = bUseCmdExe ? "echo \"\" >> \"{0}\" && copy /b \"{0}\" +,," : "touch \"{0}\"";
+ // output file should not be empty or it will be rebuilt next time
+ string Touch = bUseCmdExe ? "echo \"Dummy\" >> \"{0}\" && copy /b \"{0}\" +,," : "echo \"Dummy\" >> \"{0}\"";
PostLinkAction.CommandArguments += String.Format(Touch, OutputFile.AbsolutePath);
PostLinkAction.CommandArguments += bUseCmdExe ? "\"" : "'";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment