Displaying 2 results from an estimated 2 matches for "llvm_dont_tweak_cmakes_build_typ".
Did you mean:
llvm_dont_tweak_cmakes_build_type
2020 Nov 17
2
wasteful cmake defaults
On Tue Nov 17, 2020 at 6:37 PM GMT, Min-Yih Hsu wrote:
> Just trying to understand: Are you suggesting a way to have a “-O0”
> build without all the debug information?
>
Exactly.
2020 Nov 18
1
wasteful cmake defaults
...erriding a *cmake* variable. It takes control away from the user.
cmake probably has something to answer for here, because there's not an
explicit "empty" buildtype like e.g. meson's `--buildtype plain`, but
only the absense of a value.
Perhaps we could find a middle ground. e.g.
LLVM_DONT_TWEAK_CMAKES_BUILD_TYPE=ON which would allow fast builds, but also
enable us to mess with the cmake default to please new users?
>
> You mention CI systems, but I'd expect CI maintainers to know they can
> set CMAKE_CXX_FLAGS_RELEASE. Does -O0 even build faster than -O1?
On my configuration, yes: -O1 is slo...