Search Unity

MasterWithLTCG

Discussion in '2019.1 Beta' started by Foriero, Dec 19, 2018.

  1. Foriero

    Foriero

    Joined:
    Jan 24, 2012
    Posts:
    563
    Can anyone explain why we have in VS targeting WSA new build configuration? What configuration should go into Microsoft Store? Thank you, M.
     
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,179
    I also would like to know what MasterWithLTCG is?
     
    arsengharagyozyan likes this.
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,598
    It enables link time code generation for generated IL2CPP code.

    https://docs.microsoft.com/en-us/cpp/build/reference/ltcg-link-time-code-generation?view=vs-2017

    From 2018.3 release notes:

    Since Visual Studio projects already contained "Master" configuration, I decided to not enable LTCG for those and instead make a new build configuration for it, as we wanted this to be an opt-in settings because it literally destroys your build time (makes it ~5-6 times slower).
     
    Salvador-Romero likes this.
  4. David062

    David062

    Joined:
    Oct 24, 2018
    Posts:
    1
    Generated Visual Studio projects for IL2CPP scripting backend on Windows Standalone and Universal Windows Platform now also contain an optional "MasterWithLTCG" configuration, which you can use to enable these settings.
     
unityunity