| Summary: | C project can not use Clang Sanitizer | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] extra-cmake-modules | Reporter: | Leslie Zhai <zhaixiang> |
| Component: | general | Assignee: | Alex Merry <alex.merry> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ecm-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.29.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/extra-cmake-modules/c38e698cf3f33f2280d6d134bd0484d8051a33e7 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
Git commit 1e7f3d5ba91e79a47d69a48e8f991ee0e7794b53 by Leslie Zhai. Committed on 28/12/2016 at 01:53. Pushed by lesliezhai into branch 'master'. Add Clang Sanitizer CMAKE_C_FLAGS for C project REVIEW: 129708 Reviewers: #extracmakemodules, alexmerry Reviewed By: dfaure M +1 -0 modules/ECMEnableSanitizers.cmake https://commits.kde.org/extra-cmake-modules/1e7f3d5ba91e79a47d69a48e8f991ee0e7794b53 Git commit c38e698cf3f33f2280d6d134bd0484d8051a33e7 by Leslie Zhai. Committed on 30/12/2016 at 03:14. Pushed by lesliezhai into branch 'master'. Add Clang Sanitizer CMAKE_C_FLAGS for C project Test plan: Clang and GCC for simple C project, kcoreaddons, kjs, etc. REVIEW: 129708 Reviewers: #extracmakemodules, alexmerry Reviewed By: dfaure, aacid M +4 -0 modules/ECMEnableSanitizers.cmake https://commits.kde.org/extra-cmake-modules/c38e698cf3f33f2280d6d134bd0484d8051a33e7 |
Hi KDE developers, When I use ECMEnableSanitizers for C++ projects, for example K3b, it is OK! but for C project, it failed to add ${XSAN_COMPILE_FLAGS} into ${CMAKE_C_FLAGS} Regards, Leslie Zhai