You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a module/component developer I would like to start working on my C++ code. I don't know here to start. I would like a template with a hello world application and and hello world requirement.
Technically this means:
Integrate the open sourced LLVM toolchain for Bazel into S-CORE to enable C++ compilation and execution.
Description
Since there are still no clear requirements which host tool for compilation and execution we need to use, the best option is to go with community provided LLVM Toolchain.
With integrating this toolchain we are avoiding integration complexity that other toolchains can bring. In case later we need to integreate additional compiler (e.g. GCC) we can always keep this and as addtion add new toolchain (with proper configuration).
The current setup has already been done in PoC so we just need to migrate same solution to S-CORE.
Minimal features
❗ Successfully compile and run C++ code using LLVM.
❗ Provide a simple Hello World example to validate functionality.
Out of Scope (Optional / Not Required)
❕ IDE integration (C++ language server, compiler output visualization, etc.).
❕ clang-format (including IDE support).
❕ clang-tidy (including IDE support).
❕ Dependency management support (over bazel? via e.g. vcpkg or conan)
Note: we do not have an agreement on any of these tools yet, as there is no-one to agree them with. The problem is already addressed to tech lead circle.
For now we would probably do all of this in score. Later on we can move it to tooling. -> will be discussed in next daily
@AlexanderLanin I can't update description of ticket so I will basicly add stuff as comment. If you think this should be moved into description, feel free to do so.
Goal
Integrate the open sourced LLVM toolchain for Bazel into S-CORE to enable C++ compilation and execution.
Description
Since there are still no clear requirements which host tool for compilation and execution we need to use, the best option is to go with community provided LLVM Toolchain.
With integrating this toolchain we are avoiding integration complexity that other toolchains can bring. In case later we need to integreate additional compiler (e.g. GCC) we can always keep this and as addtion add new toolchain (with proper configuration).
The current setup has already been done in PoC so we just need to migrate same solution to S-CORE.
Minimal features
❗ Successfully compile and run C++ code using LLVM.
❗ Provide a simple Hello World example to validate functionality.
Out of Scope (Optional / Not Required)
❕ IDE integration (C++ language server, compiler output visualization, etc.).
❕ clang-format (including IDE support).
❕ clang-tidy (including IDE support).
❕ Dependency management support (over bazel?).
@AlexanderLanin I can't update description of ticket so I will basicly add stuff as comment. If you think this should be moved into description, feel free to do so.
Activity
[-]C++: Add basic C++ toolchain[/-][+]C++: Provide basic toolchain[/+]ltekieli commentedon Feb 17, 2025
Usable C++ toolchains are provided as a bazel submodule here: https://github.com/bazel-contrib/toolchains_llvm
AlexanderLanin commentedon Feb 17, 2025
That was one of the ideas. Would you align with @nradakovic and improve the issue description?
nradakovic commentedon Feb 18, 2025
@AlexanderLanin I can't update description of ticket so I will basicly add stuff as comment. If you think this should be moved into description, feel free to do so.
Goal
Integrate the open sourced LLVM toolchain for Bazel into S-CORE to enable C++ compilation and execution.
Description
Since there are still no clear requirements which host tool for compilation and execution we need to use, the best option is to go with community provided LLVM Toolchain.
With integrating this toolchain we are avoiding integration complexity that other toolchains can bring. In case later we need to integreate additional compiler (e.g. GCC) we can always keep this and as addtion add new toolchain (with proper configuration).
The current setup has already been done in PoC so we just need to migrate same solution to S-CORE.
Minimal features
❗ Successfully compile and run C++ code using LLVM.
❗ Provide a simple Hello World example to validate functionality.
Out of Scope (Optional / Not Required)
❕ IDE integration (C++ language server, compiler output visualization, etc.).
❕ clang-format (including IDE support).
❕ clang-tidy (including IDE support).
❕ Dependency management support (over bazel?).
llvm: Add LLVM Toolchain config
AlexanderLanin commentedon Feb 18, 2025
Description updated.
[-]C++: Provide basic toolchain[/-][+]C++: example repository[/+]11 remaining items
FScholPer commentedon Oct 30, 2025
@antonkri can you please migrate the old stuff to the new repo?
FScholPer commentedon Nov 21, 2025
now we have two of them. scrample and example. I thin we can close it now