-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default CMake build type #665
Comments
That problem needs to be solved anyway. |
Which defaults to empty |
Well on Linux RelWithDebInfo results in huge executables and memory consumption during compilation, at least for clang. |
Fix cases where goto skips initialization of variables
As reported by @Safety0ff, apparently CMake defaults to some sort of unoptimized build (also see #539 (comment)). I have never stumbled upon this, as LLVM leaks
-O3 -fomit-frame-pointer
into the llvm-config output, at least when it is built with CMake, thus also enabling optimizations.We should make sure that we build an optimized version by default if the user specifies no build type. @Safety0ff, could you please post some details on your system config (OS, CMake version, how you built/installed LLVM)?
Note that we might run into trouble if we just set
CMAKE_BUILD_TYPE
toRelease
by default, as this definesNDEBUG
, which requires a matching LLVM build.The text was updated successfully, but these errors were encountered: