Skip to content

Commit d367b89

Browse files
committed
GHA CI: add test for -fcf-protection=branch on x86-64
1 parent d698f25 commit d367b89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
run: tools/runner.sh test2
4343
- name: Test alternate configuration 2
4444
run: tools/runner.sh test3
45+
- name: Test alternate configuration 3
46+
run: tools/runner.sh test4
4547
macos:
4648
runs-on: macos-latest
4749
env:
@@ -68,3 +70,5 @@ jobs:
6870
run: tools/runner.sh test2
6971
- name: Test alternate configuration 2
7072
run: tools/runner.sh test3
73+
- name: Test alternate configuration 3
74+
run: tools/runner.sh test4

tools/runner.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ case "$target,$os" in
218218
1) Run_test "" "";;
219219
2) Run_test "" "-fpic";;
220220
3) Run_test "" "-Os -fno-pie -no-pie";;
221+
4) Run_test "" "-fcf-protection=branch";;
221222
esac;;
222223
*)
223224
Fatal "Unknown configuration \"$target\" - \"$os\""
@@ -238,6 +239,7 @@ case "$1" in
238239
test1) Run_test_round 1;;
239240
test2) Run_test_round 2;;
240241
test3) Run_test_round 3;;
242+
test4) Run_test_round 4;;
241243
build_ccomp) Build_ccomp;;
242244
check_proof) Check_proof;;
243245
hygiene) Hygiene;;

0 commit comments

Comments
 (0)