Build: Define THREAD_LOCAL even if !WITH_TURBOJPEG
The SIMD dispatchers use thread-local storage now as well, because of
f579cc11b3.
This commit is contained in:
@@ -468,7 +468,6 @@ if(NOT INLINE_WORKS)
|
|||||||
endif()
|
endif()
|
||||||
message(STATUS "INLINE = ${INLINE} (FORCE_INLINE = ${FORCE_INLINE})")
|
message(STATUS "INLINE = ${INLINE} (FORCE_INLINE = ${FORCE_INLINE})")
|
||||||
|
|
||||||
if(WITH_TURBOJPEG)
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(THREAD_LOCAL "__declspec(thread)")
|
set(THREAD_LOCAL "__declspec(thread)")
|
||||||
else()
|
else()
|
||||||
@@ -481,7 +480,6 @@ if(WITH_TURBOJPEG)
|
|||||||
message(WARNING "Thread-local storage is not available. The TurboJPEG API library's global error handler will not be thread-safe.")
|
message(WARNING "Thread-local storage is not available. The TurboJPEG API library's global error handler will not be thread-safe.")
|
||||||
unset(THREAD_LOCAL)
|
unset(THREAD_LOCAL)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map "VERS_1 { global: *; };")
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map "VERS_1 { global: *; };")
|
||||||
|
|||||||
Reference in New Issue
Block a user