Skip to content

Commit

Permalink
Merge pull request #95 from xianyi/develop
Browse files Browse the repository at this point in the history
rebase
  • Loading branch information
martin-frbg authored Oct 11, 2020
2 parents fbda20c + 8892865 commit 8ef600f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions cmake/arch.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
##
## Author: Hank Anderson <[email protected]>
## Description: Ported from portion of OpenBLAS/Makefile.system
## Sets various variables based on architecture.
Expand Down Expand Up @@ -80,10 +79,15 @@ if (DYNAMIC_ARCH)
string(REGEX REPLACE "-march=native" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
endif ()
if (DYNAMIC_LIST)
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
endif ()
endif ()

CHECK_INCLUDE_FILE ("${PROJECT_SOURCE_DIR}/config_kernel.h" TRAP)
if (TRAP)
message (FATAL_ERROR "Your build directory contains a file config_kernel.h, probably from a previous compilation with make. This will conflict with the cmake compilation and cause strange compiler errors - please remove the file before trying again")
endif ()

if (NOT DYNAMIC_CORE)
message (STATUS "DYNAMIC_ARCH is not supported on this architecture, removing from options")
unset(DYNAMIC_ARCH CACHE)
Expand Down
3 changes: 1 addition & 2 deletions cmake/system_check.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ endif()

include(CheckIncludeFile)
CHECK_INCLUDE_FILE("stdatomic.h" HAVE_C11)
if (HAVE_C11 EQUAL 1)
message (STATUS found stdatomic.h)
if (HAVE_C11)
set (CCOMMON_OPT "${CCOMMON_OPT} -DHAVE_C11")
endif()

0 comments on commit 8ef600f

Please sign in to comment.