Skip to content

Building fails unless SDK and compiler version match exactlyΒ #409

@johnwbyrd

Description

@johnwbyrd

On line 17 of mos-platform/common/crt/CMakeLists.txt, there is the following line:

find_library(builtins clang_rt.builtins REQUIRED PATHS ${compiler_dir}/../lib/clang/22/lib/mos-unknown-unknown NO_DEFAULT_PATH)

This code forces each release of the SDK to match a specific version of the compiler, EXACTLY. Failing to follow this rule causes odd breakages when referring to clang builtins. This is quite fragile.

The SDK should probably get the right directories from one of the following:

mos-clang -print-search-dirs
mos-clang -print-resource-dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions