Skip to content
Snippets Groups Projects
Commit a98de38d authored by Ryan Gonzalez's avatar Ryan Gonzalez
Browse files

build: Disable -fsanitize=function when building with UBSan

LLVM 17 enabled -fsanitize=function by default for C, instead of only
C++:

https://github.com/llvm/llvm-project/commit/279a4d0d67c874e80c171666822f2fabdd6fa926



But GLib uses function pointer casts extensively, resulting in a myriad
of test failures. Just disable it as a workaround.

steamrt/tasks#677

Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
parent 5a2da7d7
Branches
Tags
1 merge request!796build: Disable -fsanitize=function when building with UBSan
Pipeline #118967 passed