What is the difference between /GL and /LTCG in Visual Studio
<p>I tried looking online for the differences but couldn't get a lot. The two options sound related to each other:</p>

<p>/LTCG: <a href="https://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx</a></p>

<blockquote>
  <p>The /LTCG option tells the linker to call the compiler and perform whole-program optimization.</p>
</blockquote>

<p>/GL: <a href="https://msdn.microsoft.com/en-us/library/0zza0de8.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/0zza0de8.aspx</a></p>

<blockquote>
  <p>Enables whole program optimization.</p>
</blockquote>

<p>Does anybody know the exact difference?</p>