Added information on how to enable thread-safety analysis
This commit is contained in:
1 parent
5735d2b03b
commit
12deed91f8
1 file changed
+4
@@ -34,6 +34,10 @@
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* Enable thread safety attributes only with clang.
|
/* Enable thread safety attributes only with clang.
|
||||||
* The attributes can be safely erased when compiling with other compilers.
|
* The attributes can be safely erased when compiling with other compilers.
|
||||||
|
*
|
||||||
|
* To enable analysis, set these environment variables before running cmake:
|
||||||
|
* export CC=clang
|
||||||
|
* export CFLAGS="-DSDL_THREAD_SAFETY_ANALYSIS -Wthread-safety"
|
||||||
*/
|
*/
|
||||||
#if defined(SDL_THREAD_SAFETY_ANALYSIS) && \
|
#if defined(SDL_THREAD_SAFETY_ANALYSIS) && \
|
||||||
defined(__clang__) && (!defined(SWIG))
|
defined(__clang__) && (!defined(SWIG))
|
||||||
|
|||||||
Reference in new issue
Block a user