@@ -24,30 +24,42 @@ jobs:
2424 cpp_compiler : clang++-22
2525 target : x86_64-unknown-linux-llvm
2626 include_scudo : ON
27+ enable_baremetal_build : OFF
2728 - os : ubuntu-24.04
2829 build_type : Release
2930 c_compiler : clang-22
3031 cpp_compiler : clang++-22
3132 target : x86_64-unknown-linux-llvm
3233 include_scudo : ON
34+ enable_baremetal_build : OFF
3335 - os : ubuntu-24.04
3436 build_type : MinSizeRel
3537 c_compiler : clang-22
3638 cpp_compiler : clang++-22
3739 target : x86_64-unknown-linux-llvm
3840 include_scudo : ON
41+ enable_baremetal_build : OFF
3942 - os : ubuntu-24.04-arm
4043 build_type : Debug
4144 c_compiler : clang-22
4245 cpp_compiler : clang++-22
4346 target : aarch64-unknown-linux-llvm
4447 include_scudo : ON
48+ enable_baremetal_build : OFF
4549 - os : ubuntu-24.04
4650 build_type : Debug
4751 c_compiler : clang-22
4852 cpp_compiler : clang++-22
4953 target : x86_64-unknown-uefi-llvm
5054 include_scudo : OFF
55+ enable_baremetal_build : OFF
56+ - os : ubuntu-24.04
57+ build__type : Release
58+ c_compiler : clang-22
59+ cpp_compiler : clang++-22
60+ target : armv6m-none-eabi
61+ include_scudo : OFF
62+ enable_baremetal_build : ON
5163 # TODO: add back gcc build when it is fixed
5264 # - c_compiler: gcc
5365 # cpp_compiler: g++
@@ -102,6 +114,18 @@ jobs:
102114 -DCOMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED=OFF"
103115 fi
104116
117+ if [[ ${{ matrix.enable_baremetal_build}} == "ON" ]]; then
118+ export RUNTIMES="$RUNTIMES;libc"
119+ export CMAKE_FLAGS="
120+ -DCMAKE_BUILD_TYPE=Release
121+ -DLLVM_LIBC_FULL_BUILD=ON
122+ -DCMAKE_C_COMPILER_TARGET=armv6m-none-abi
123+ -DCMAKE_CXX_COMPILER_TARGET=armv6m-none-abi
124+ -DCMAKE_ASM_COMPILER_TARGET=armv6m-none-abi
125+ -DCMAKE_C_FLAGS=-mfloat-abi=soft
126+ -DCMAKE_CXX_FLAGS=-mfloat-abi=soft"
127+ fi
128+
105129 cmake -B ${{ steps.strings.outputs.build-output-dir }} \
106130 -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
107131 -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
0 commit comments