Note how to debug the C++ code
This commit is contained in:
parent
2ce3db3bb8
commit
fe90e80881
1 changed files with 6 additions and 4 deletions
10
COMPILING.md
10
COMPILING.md
|
@ -1,5 +1,7 @@
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
|
Note: to debug the C++ code, go to `UI`'s properties, tick `Debug > Debugger engines > Enable native code debugging`, and save the changes.
|
||||||
|
|
||||||
#### *Standalone*
|
#### *Standalone*
|
||||||
|
|
||||||
1) Open the solution in Visual Studio 2019
|
1) Open the solution in Visual Studio 2019
|
||||||
|
@ -22,7 +24,7 @@ Note: It's also possible to build the Libretro core via MINGW by using the makef
|
||||||
|
|
||||||
To compile Mesen-S under Linux you will need a relatively recent version of clang or gcc that supports the C++17 filesystem API.) Additionally, Mesen-S has the following dependencies:
|
To compile Mesen-S under Linux you will need a relatively recent version of clang or gcc that supports the C++17 filesystem API.) Additionally, Mesen-S has the following dependencies:
|
||||||
|
|
||||||
* Mono 5.18+ (package: mono-devel)
|
* Mono 5.18+ (package: mono-devel)
|
||||||
* SDL2 (package: libsdl2-dev)
|
* SDL2 (package: libsdl2-dev)
|
||||||
|
|
||||||
**Note:** **Mono 5.18 or higher is recommended**, some older versions of Mono (e.g 4.2.2) have some stability and performance issues which can cause crashes and slow down the UI.
|
**Note:** **Mono 5.18 or higher is recommended**, some older versions of Mono (e.g 4.2.2) have some stability and performance issues which can cause crashes and slow down the UI.
|
||||||
|
@ -31,9 +33,9 @@ The default Mono version in Ubuntu 18.04 is 4.6.2 (which also causes some layout
|
||||||
The makefile contains some more information at the top. Running "make" will build the x64 version by default, and then "make run" should start the emulator.
|
The makefile contains some more information at the top. Running "make" will build the x64 version by default, and then "make run" should start the emulator.
|
||||||
LTO is supported under clang, which gives a large performance boost (25-30%+), so turning it on is highly recommended (see makefile for details):
|
LTO is supported under clang, which gives a large performance boost (25-30%+), so turning it on is highly recommended (see makefile for details):
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
`LTO=true make` will compile with clang and LTO.
|
`LTO=true make` will compile with clang and LTO.
|
||||||
`USE_GCC=true LTO=true make` will compile with gcc and LTO.
|
`USE_GCC=true LTO=true make` will compile with gcc and LTO.
|
||||||
|
|
||||||
#### *Libretro*
|
#### *Libretro*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue