Skip to content
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

Support host builds using clang toolchain #2798

Merged
merged 3 commits into from
Jun 12, 2024

Commits on Jun 11, 2024

  1. Support building with clang

    Whilst currently only for Host, toolchain detection logic is in main build.mk file for Sming.
    This paves the way for clang embedded toolchains.
    
    Requires extended toolchain version detection.
    CLANG_TIDY can use same settings as for regular clang build
    Rename `GCC_VERSION` as `COMPILER_VERSION`, add `COMPILER_NAME`
    Full compiler version strings can include spaces, e.g. "Apple clang version 11.0.0 (clang-1100.0.33.17)"
    Interpreted as "Apple-clang", "11.0.0"
    
    Notice printed if using clang, but only once in any given build invocation.
    mikee47 committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    f016ef2 View commit details
    Browse the repository at this point in the history
  2. Fix clang *errors*

    There are plenty warnings; sort these later
    mikee47 committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    7690eaf View commit details
    Browse the repository at this point in the history
  3. Add CI clang build

    mikee47 committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    a9621b3 View commit details
    Browse the repository at this point in the history