Skip to content

Commit

Permalink
Fixed bug 2238 - Enable GCC atomics for clang
Browse files Browse the repository at this point in the history
Marcus von Appen

clang provides support for optimized atomics.
The attached patch enables the cmake build system to take clang into account on checking for atomics.
  • Loading branch information
slouken committed Nov 16, 2013
1 parent 3b52058 commit 744cd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -266,7 +266,7 @@ endif(ASSERTIONS STREQUAL "auto")
set(HAVE_ASSERTIONS ${ASSERTIONS})

# Compiler option evaluation
if(USE_GCC)
if(USE_GCC OR USE_CLANG)
if(DEPENDENCY_TRACKING)
check_c_source_compiles("
#if !defined(__GNUC__) || __GNUC__ < 3
Expand Down Expand Up @@ -314,7 +314,7 @@ if(USE_GCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
endif(HAIKU)
endif(HAVE_GCC_WALL)
endif(USE_GCC)
endif(USE_GCC OR USE_CLANG)

if(ASSEMBLY)
if(USE_GCC OR USE_CLANG)
Expand Down

0 comments on commit 744cd46

Please sign in to comment.