mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 22:25:55 +00:00
Add --build-id link parameters on GGP
This commit is contained in:
@@ -545,6 +545,10 @@ if(UNIX AND NOT ANDROID AND NOT APPLE)
|
||||
set(RDOC_LINK_FLAGS "${RDOC_LINK_FLAGS} -Wl,--no-undefined")
|
||||
endif()
|
||||
|
||||
if(ENABLE_GGP)
|
||||
set(RDOC_LINK_FLAGS "${RDOC_LINK_FLAGS} -Wl,--hash-style=gnu -Wl,--build-id=sha1")
|
||||
endif()
|
||||
|
||||
set_target_properties(renderdoc PROPERTIES LINK_FLAGS "${RDOC_LINK_FLAGS}")
|
||||
set_target_properties(renderdoc PROPERTIES SKIP_BUILD_RPATH TRUE)
|
||||
endif()
|
||||
|
||||
@@ -22,7 +22,7 @@ elseif(ENABLE_GGP)
|
||||
list(APPEND sources renderdoccmd_ggp.cpp)
|
||||
find_library(GGP_LIBRARY ggp)
|
||||
list(APPEND libraries PRIVATE ${GGP_LIBRARY})
|
||||
set(LINKER_FLAGS "-Wl,--no-as-needed")
|
||||
set(LINKER_FLAGS "-Wl,--no-as-needed -Wl,--hash-style=gnu -Wl,--build-id=sha1")
|
||||
elseif(UNIX)
|
||||
list(APPEND sources renderdoccmd_linux.cpp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user