mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fplib build fix (#637)
* Fix conversions build with gcc 4.8.5 armhf. Re-named fplib.c to fplib.cpp. Updated the conditions under which fplib.cpp will be included in the build by CMake. * Build: Added a global archtiecture variable, CLConform_TARGET_ARCH. The reset of the build can query this variable whenever archtiecture specific options are required. The current supported values of this variable are "ARM", "x86", and "x86_64". This change also replaces all existing locations where CMAKE_SYSTEM_PROCESSOR was queried. * Build: Added ARM64 as a valid value for CLConform_TARGET_ARCH. * Conversions: Don't build fplib.cpp for ARM64.
This commit is contained in:
@@ -13,9 +13,9 @@ set (${MODULE_NAME}_SOURCES
|
||||
Sleep.cpp test_conversions.cpp basic_test_conversions.cpp
|
||||
)
|
||||
|
||||
if(ANDROID)
|
||||
list(APPEND CONVERSIONS_SOURCES fplib.c)
|
||||
endif(ANDROID)
|
||||
if(CMAKE_COMPILER_IS_GNUCC AND ${CLConform_TARGET_ARCH} EQUAL "ARM")
|
||||
list(APPEND ${MODULE_NAME}_SOURCES fplib.cpp)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_CL_64 AND NOT MSVC AND NOT ANDROID)
|
||||
# -march is needed for CPU atomics, default arch on gcc is i386
|
||||
|
||||
Reference in New Issue
Block a user