Skip to content

Commit 0963874

Browse files
committed
Add GCC variants of Linux/Sanitizer CI jobs
While clang has the best support, GCC also supports a number of sanitizers, so verify via new CI jobs.
1 parent 33a33ee commit 0963874

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.gitlab-ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,20 +465,35 @@ Linux/Static Analysis:
465465
CMAKE_OPTIONS: -DCLANG_TIDY=ON -DCPPCHECK=ON
466466
<<: *linux_success_template
467467

468+
Linux/GCC/ThreadSanitizer:
469+
variables:
470+
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=thread
471+
<<: *linux_failure_template
472+
468473
Linux/Clang/ThreadSanitizer:
469474
variables:
470475
CC: clang
471476
CXX: clang++
472477
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=thread
473478
<<: *linux_failure_template
474479

480+
Linux/GCC/AddressSanitizer:
481+
variables:
482+
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=address
483+
<<: *linux_failure_template
484+
475485
Linux/Clang/AddressSanitizer:
476486
variables:
477487
CC: clang
478488
CXX: clang++
479489
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=address
480490
<<: *linux_failure_template
481491

492+
Linux/GCC/LeakSanitizer:
493+
variables:
494+
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=leak
495+
<<: *linux_failure_template
496+
482497
Linux/Clang/LeakSanitizer:
483498
variables:
484499
CC: clang
@@ -493,6 +508,11 @@ Linux/Clang/MemorySanitizer:
493508
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=memory
494509
<<: *linux_failure_template
495510

511+
Linux/GCC/UndefinedSanitizer:
512+
variables:
513+
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=undefined
514+
<<: *linux_success_template
515+
496516
Linux/Clang/UndefinedSanitizer:
497517
variables:
498518
CC: clang

0 commit comments

Comments
 (0)