Bug 374195 - C project can not use Clang Sanitizer
Summary: C project can not use Clang Sanitizer
Status: RESOLVED FIXED
Alias: None
Product: extra-cmake-modules
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.29.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-27 06:38 UTC by Leslie Zhai
Modified: 2016-12-30 03:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leslie Zhai 2016-12-27 06:38:54 UTC
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
Comment 1 Leslie Zhai 2016-12-28 01:56:52 UTC
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
Comment 2 Leslie Zhai 2016-12-30 03:19:11 UTC
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