Skip to content

[libc] remove -O3 from build rules #112409

@nickdesaulniers

Description

@nickdesaulniers

Forking the discussion from here (cc @jyknight ). I don't think we should be hard coding -O3 throughout our cmake build files. Not only is it tedious, but it's very likely we will have customers that would prefer a binary sized optimized build (-Os). Instead, I think the widely understood CMAKE_BUILD_TYPE should be used to key off whether we should be building with -O2 vs -Os. If we need -O3, I think it would be good to understand where+why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakeBuild system in general and CMake in particularlibc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions