Revert changes that migrate to thread_local.
iOS 8 does not support `thread_local`, which is still in use. Another approach will have to be found. This change is a revert of the following changes:a3845240- "Simplify PoolAlloc with use of thread_local."abf92c80- "Deprecate InitializeDll functions"33585c87- "Limit visibility of symbols for internal libraries" Issue: #2346
This commit is contained in:
parent
7ab4564696
commit
2a44064885
8 changed files with 161 additions and 35 deletions
|
|
@ -279,23 +279,17 @@ function(glslang_add_build_info_dependency target)
|
|||
add_dependencies(${target} glslang-build-info)
|
||||
endfunction()
|
||||
|
||||
# glslang_default_to_hidden_visibility() makes the symbol visibility hidden by
|
||||
# default for <target>.
|
||||
function(glslang_default_to_hidden_visibility target)
|
||||
if(NOT WIN32)
|
||||
target_compile_options(${target} PRIVATE "-fvisibility=hidden")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
# glslang_only_export_explicit_symbols() makes the symbol visibility hidden by
|
||||
# default for <target>, and sets the GLSLANG_IS_SHARED_LIBRARY define, and
|
||||
# GLSLANG_EXPORTING to 1 when specifically building <target>.
|
||||
# default for <target> when building shared libraries, and sets the
|
||||
# GLSLANG_IS_SHARED_LIBRARY define, and GLSLANG_EXPORTING to 1 when specifically
|
||||
# building <target>.
|
||||
function(glslang_only_export_explicit_symbols target)
|
||||
glslang_default_to_hidden_visibility(${target})
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(${target} PUBLIC "GLSLANG_IS_SHARED_LIBRARY=1")
|
||||
if(WIN32)
|
||||
target_compile_definitions(${target} PRIVATE "GLSLANG_EXPORTING=1")
|
||||
else()
|
||||
target_compile_options(${target} PRIVATE "-fvisibility=hidden")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue