Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Check for -fsanitize= also in $CC
People may put -fsanitize in CC instead of CFLAGS so check both. Landlock sandbox isn't compatible with sanitizers so it's nice to catch the incompatible options at configure time. Don't attempt to do the same in CMakeLists.txt; the check for CMAKE_C_FLAGS / CFLAGS shall be enough there. The extra flags from the CC environment variable go into the undocumented internal variable CMAKE_C_COMPILER_ARG1 (all flags from CC go into that same variable). Peeking the internal variable merely for improved diagnostics isn't worth it. Fixes: 88588b1
- Loading branch information