[12gevmoller_sim] [JeffersonLab/remoll] 482588: Change the default build type to RelWithDebInfo

Wouter Deconinck noreply at github.com
Tue Apr 2 08:27:10 EDT 2019


  Branch: refs/heads/bugfix-default-build-type-relwithdebinfo
  Home:   https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffersonLab%2Fremoll&data=02%7C01%7C12gevmoller_sim%40jlab.org%7C3a7d3c0205154b61f8b608d6b766880c%7Cb4d7ee1f4fb34f0690372b5b522042ab%7C1%7C1%7C636898048325507029&sdata=uTi4PjBmFAV5umfIJrguwx0P4fqgQAd9Aec4IPIDs6A%3D&reserved=0
  Commit: 482588c367795363a6d257f8e7bdcb57f1fac747
      https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffersonLab%2Fremoll%2Fcommit%2F482588c367795363a6d257f8e7bdcb57f1fac747&data=02%7C01%7C12gevmoller_sim%40jlab.org%7C3a7d3c0205154b61f8b608d6b766880c%7Cb4d7ee1f4fb34f0690372b5b522042ab%7C1%7C1%7C636898048325507029&sdata=PkQT8yqQWp0QZylPYzbpm9eDh2FfQkBJmmcJJ%2BFx%2BPw%3D&reserved=0
  Author: Wouter Deconinck <wdconinc at gmail.com>
  Date:   2019-04-02 (Tue, 02 Apr 2019)

  Changed paths:
    M .gitignore
    M cmake/modules/BuildType.cmake

  Log Message:
  -----------
  Change the default build type to RelWithDebInfo

The default build type was Debug, which is about ~30% slower than
RelWithDebInfo, and RelWithDebInfo contains the same backtrace info.
This will make code faster (since typically run without changing the
default build type).

A specific build type can be chosen without the neeed to specify a
command line flag by creating a file .buildtype (which is ignored by
git) with as content e.g. Debug. This will persist between deletes
of the build directory (but changing the file will not cause a new
build type to take effect, this is only read on the first call to
cmake in an empty directory). The content of the file can still be
overriden with a command line argument.




More information about the 12gevmoller_sim mailing list