Skip to content

Commit d3e5288

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

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
@@ -226,6 +226,7 @@ case "$target,$os" in
226226
1) Run_test "" "";;
227227
2) Rerun_test "" "-fpic";;
228228
3) Rerun_test "" "-Os -fno-pie -no-pie";;
229+
4) Rerun_test "" "-fcf-protection=branch";;
229230
esac;;
230231
*)
231232
Fatal "Unknown configuration \"$target\" - \"$os\""
@@ -246,6 +247,7 @@ case "$1" in
246247
test1) Run_test_round 1;;
247248
test2) Run_test_round 2;;
248249
test3) Run_test_round 3;;
250+
test4) Run_test_round 4;;
249251
build_ccomp) Build_ccomp;;
250252
check_proof) Check_proof;;
251253
hygiene) Hygiene;;

0 commit comments

Comments
 (0)