Skip to content

Commit

Permalink
Add CMake note to debug information section (#19879)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Jul 21, 2023
1 parent 7db868e commit bec42da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/source/docs/compiling/Building-Projects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ with :term:`clang` or *gcc* normally).

.. note:: Each build-system defines its own mechanisms for setting debug flags. **To get Clang to emit LLVM debug information, you will need to work out the correct approach for your system**.

- Some build systems have a flag like ``./configure --enable-debug``.
- Some build systems have a flag like ``./configure --enable-debug``. In *CMake*-based build systems, set the ``CMAKE_BUILD_TYPE`` to ``"Debug"``.

To get *emcc* to include the debug information present in object files when
generating the final JavaScript and WebAssembly, your final ``emcc`` command
Expand Down

0 comments on commit bec42da

Please sign in to comment.