Remove "-Bsymbolic" for Clang (not supported)

This commit is contained in:
Raphael Coeffic
2021-09-13 11:13:08 +02:00
parent 3f8e547077
commit b0d2853ed1
+3 -1
View File
@@ -49,7 +49,9 @@ if(Qt5Widgets_FOUND)
# When the simulator is launched from Companion the runtime dynamic linking can result in Companion overiding the simulator
# and crashing the simulator under some OSes
# The flag forces the runtime linker to always look for references in the simulator first
target_link_options(${SIMULATOR_TARGET} PRIVATE "LINKER:-Bsymbolic")
if (NOT CLANG)
target_link_options(${SIMULATOR_TARGET} PRIVATE "LINKER:-Bsymbolic")
endif()
#
add_custom_target(libsimulator DEPENDS ${SIMULATOR_TARGET})