don't try to control libcxxabi exports on 10.6.8
we are just exporting the entire libcxxabi library
we could make this apply always using the same mechanism as the other
0017-series patch
a
|
b
|
|
201 | 201 | |
202 | 202 | add_library(cxxabi-reexports INTERFACE) |
203 | 203 | |
204 | | # -exported_symbols_list is only available on Apple platforms |
205 | | if (APPLE) |
206 | | function(export_symbols file) |
207 | | target_link_libraries(cxxabi_shared PRIVATE "-Wl,-exported_symbols_list,${file}") |
208 | | endfunction() |
209 | | function(reexport_symbols file) |
210 | | export_symbols("${file}") |
211 | | target_link_libraries(cxxabi-reexports INTERFACE "-Wl,-reexported_symbols_list,${file}") |
212 | | endfunction() |
213 | | |
214 | | export_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/itanium-base.exp") |
215 | | |
216 | | if (LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS) |
217 | | reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/new-delete.exp") |
218 | | endif() |
219 | | |
220 | | if (LIBCXXABI_ENABLE_EXCEPTIONS) |
221 | | reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/exceptions.exp") |
222 | | |
223 | | if ("${CMAKE_OSX_ARCHITECTURES}" MATCHES "^(armv6|armv7|armv7s)$") |
224 | | reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/personality-sjlj.exp") |
225 | | else() |
226 | | reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/personality-v0.exp") |
227 | | endif() |
228 | | endif() |
229 | | endif() |
230 | 204 | endif() |
231 | 205 | |
232 | 206 | # Build the static library. |