Commit Graph

9 Commits

Author SHA1 Message Date
Ben Marsh
61ae09432a Live Coding: Fix crash when lazy loading a module with changes.
#rb none
#rnx

[CL 6608222 by Ben Marsh in Dev-Build branch]
2019-05-22 13:45:18 -04:00
Ben Marsh
d6fee0eb80 Merging latest version of Live++ (check timestamps on object files, support for adding multiple modules at once)
#rb none
#rnx

[CL 6605641 by Ben Marsh in Dev-Build branch]
2019-05-22 11:21:49 -04:00
Ben Marsh
fd2852f44f Update to latest version of Live Coding. Fixes issues with symbols not being stripped if they can throw an exception during construction.
#rb none

[CL 6602853 by Ben Marsh in Dev-Build branch]
2019-05-21 21:03:36 -04:00
Ben Marsh
ba077509fe Live Coding: Fix crashes when patching adaptive non-unity files in game modules containing static global variables.
Live++ reads object files at startup for game modules, and assigns unique ids to each compiland (used to disambiguate static variables). When compiling the patch, these compilands are modified to reference a unique id for the unity blob, causing the variables to be reconstructed.

Solution is to generate a JSON file to each output directory containing object files containing the mapping, and to use that to assign compiland ids at startup.

#rb none
#jira UE-74036

[CL 6453851 by Ben Marsh in Dev-Build branch]
2019-05-14 17:48:05 -04:00
Ben Marsh
1e38db4e2c Merging early Live++ 1.4.3 changes.
#rb none

[CL 5920648 by Ben Marsh in Dev-Build branch]
2019-04-16 13:01:07 -04:00
Ben Marsh
5651dbf4cd Integrating changes from Live++ 1.4.1.
#rb none

[CL 5919984 by Ben Marsh in Dev-Build branch]
2019-04-16 12:46:58 -04:00
ben marsh
6d5b9bd3f6 LiveCoding: Add support for lazy loading modules. This lets us enable live coding for the entire engine without a large startup penalty. Project modules are still preloaded by default.
#rb none
#jira

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5437980 in //UE4/Release-4.22/... via CL 5437990
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build)

[CL 5457435 by ben marsh in Dev-Build branch]
2019-03-19 14:39:34 -04:00
ben marsh
d79019f42f Fixes for static analysis warnings.
#rb none
#jira

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5307320 in //UE4/Release-4.22/... via CL 5314647
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build)

[CL 5328763 by ben marsh in Dev-Build branch]
2019-03-06 18:29:55 -05:00
ben marsh
49a498e69e Integrating live coding feature (aka Live++) into UE4.
Allows fast iteration of C++ changes without restarting the application. To use, select the "Live Coding (Experimental)" mode from the drop down menu next to the editor's compile button, or type "LiveCoding" into the console for a monolithic build. Press Ctrl+Alt+F11 to find changes and compile.

Changes vs standalone Live++ version:

* UBT is used to execute builds. This allows standard UE4 adaptive unity mode, allows us to reuse object files when we do regular builds, supports using any build executor allowed by UBT (XGE, SNDBS, etc..).
* Adding new source files is supported.
* Custom visualizer for FNames is supported via a weakly linked symbol in a static library (Engine/Extras/NatvisHelpers).
* Settings are exposed in the editor's project settings dialog.
* Standalone application has been rewritten as a Slate app ("LiveCodingConsole"). There is an additional option to start the program as hidden, where it will not be visible until Ctrl+Alt+F11 is hit. Similarly, closing the window will hide it instead of closing the application.
* Does not require a standalone licensed version of Live++.

Known issues:

* Does not currently support class layout changes / object reinstancing

#rb none
[FYI] Marc.Audy, Stefan.Boberg, Nick.Penwarden
#jira

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5304722 in //UE4/Release-4.22/... via CL 5309051
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build)

[CL 5325555 by ben marsh in Dev-Build branch]
2019-03-06 18:16:41 -05:00