Skip to content

Fix cmake build #60

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Fix cmake build #60

merged 2 commits into from
Nov 30, 2023

Conversation

donald
Copy link
Contributor

@donald donald commented Nov 21, 2023

Default to CMAKE_BUILD_TYPE=RelWithDebInfo (-O2) with cmake instead of CMAKE_BUILD_TYPE=Debug (-O0).

Also add a minor fix for filenames which include the character [ like /usr/bin/[.

See https://github.molgen.mpg.de/mariux64/mariux64-issues/issues/95

Add '[' to the set of characters which need escaping when used in a
regular expression.
cmake, by default, uses CMAKE_BULD_TYPE=Debug with implies '-O0'. This
has a severe performance impact for most software. Let bee use
CMAKE_BULD_TYPE=RelWithDebInfo by default, which implies '-O2'.

For most software, the difference between '-O2' and '-O3' is
neglectable. Bee packages with special performance considerations, for
example zlib, might use -DCMAKE_BUILD_TYPE=Release in their bee file to
force '-O3'.
@donald donald merged commit a734919 into master Nov 30, 2023
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant