Skip to content

Commit 0ced53a

Browse files
authored
Add clang (#48)
Hello example builds and runs with CLANG in addition.
1 parent dc35482 commit 0ced53a

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.ci/vcpkg-configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"arm:tools/ninja-build/ninja": "^1.12.0",
1313
"arm:compilers/arm/armclang": "^6.22.0",
1414
"arm:compilers/arm/arm-none-eabi-gcc": "^13.2.1",
15+
"arm:compilers/arm/llvm-embedded": "^20.1.0",
1516
"arm:models/arm/avh-fvp": "^11.26.11"
1617
}
1718
}

.github/workflows/Hello-CI.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,25 @@ jobs:
7373
--simlimit 60 --stat
7474
echo " Show simulation UART output build with GCC Release"
7575
cat ./out/Hello/CS300/Release/GCC_fvp_stdout.log
76+
77+
- name: Build Hello with CLANG and all contexts
78+
working-directory: ./Hello/
79+
run: cbuild Hello.csolution.yml --packs --toolchain CLANG
80+
81+
- name: Run Hello build-type Debug, CLANG
82+
working-directory: ./Hello/
83+
run: |
84+
FVP_Corstone_SSE-300 -a ./out/Hello/CS300/Debug/Hello.elf -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
85+
-C mps3_board.uart0.out_file=./out/Hello/CS300/Debug/CLANG_fvp_stdout.log \
86+
--simlimit 60 --stat
87+
echo " Show simulation UART output build with CLANG Debug"
88+
cat ./out/Hello/CS300/Debug/CLANG_fvp_stdout.log
89+
90+
- name: Run Hello build-type Release, CLANG
91+
working-directory: ./Hello/
92+
run: |
93+
FVP_Corstone_SSE-300 -a ./out/Hello/CS300/Release/Hello.elf -f ./../FVP/FVP_Corstone_SSE-300/fvp_config.txt \
94+
-C mps3_board.uart0.out_file=./out/Hello/CS300/Release/CLANG_fvp_stdout.log \
95+
--simlimit 60 --stat
96+
echo " Show simulation UART output build with CLANG Release"
97+
cat ./out/Hello/CS300/Release/CLANG_fvp_stdout.log

Hello/Hello.csolution.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ solution:
66
select-compiler: # list of tested compilers
77
- compiler: AC6
88
- compiler: GCC
9+
- compiler: CLANG
910

1011
compiler: GCC # selected compiler
1112

vcpkg-configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"arm:tools/ninja-build/ninja": "^1.12.0",
1313
"arm:compilers/arm/armclang": "^6.22.0",
1414
"arm:compilers/arm/arm-none-eabi-gcc": "^13.2.1",
15+
"arm:compilers/arm/llvm-embedded": "^20.1.0",
1516
"arm:models/arm/avh-fvp": "^11.26.11"
1617
}
1718
}

0 commit comments

Comments
 (0)