mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 05:25:33 +00:00
Add check for Clang.
This commit is contained in:
parent
fa56d37080
commit
cd17ddaa0b
|
@ -145,7 +145,13 @@ IF( NOT HAS_INLINE_ASSEMBLY AND NOT HAS_INLINE_ASSEMBLY_WITH_FLAGS )
|
|||
ENDIF()
|
||||
|
||||
# Check to see whether or not our compiler supports atomic operations
|
||||
IF( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
|
||||
IF( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" )
|
||||
SET( COMPILER_CLANG True )
|
||||
ELSEIF( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
||||
SET( COMPILER_GNU True )
|
||||
ENDIF()
|
||||
|
||||
IF( COMPILER_CLANG OR COMPILER_GNU )
|
||||
|
||||
CHECK_CXX_SOURCE_RUNS("
|
||||
int main() {
|
||||
|
|
Loading…
Reference in a new issue