[rocprofiler-systems] Apply new CMake formatting for the latest gersemi version (#1778)
* Fix cmake formatting * Updated rev. in `.pre-commit-config.yaml` * Pin the gersemi used in CI to v0.23.1, matching the pre-commit --------- Co-authored-by: Aleksandar Djordjevic <adjordje@amd.com> Co-authored-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
committed by
GitHub
parent
42cc721a4b
commit
f39a60ac25
@@ -23,8 +23,7 @@ set(_sources src/RTcommon.c src/RTheap.c src/RTthread.c)
|
||||
if(PLATFORM MATCHES linux)
|
||||
set(_static_sources src/RTstatic_ctors_dtors_begin.c src/RTstatic_ctors_dtors_end.c)
|
||||
list(
|
||||
APPEND
|
||||
_sources
|
||||
APPEND _sources
|
||||
src/RTposix.c
|
||||
src/RTlinux.c
|
||||
src/RTheap-linux.c
|
||||
|
||||
@@ -54,8 +54,7 @@ endif()
|
||||
if(PLATFORM MATCHES i386)
|
||||
set(ARCH_DEFINES arch_x86)
|
||||
list(
|
||||
APPEND
|
||||
CAP_DEFINES
|
||||
APPEND CAP_DEFINES
|
||||
cap_fixpoint_gen
|
||||
cap_noaddr_gen
|
||||
cap_stripped_binaries
|
||||
@@ -66,8 +65,7 @@ if(PLATFORM MATCHES i386)
|
||||
elseif(PLATFORM MATCHES x86_64 OR PLATFORM MATCHES amd64)
|
||||
set(ARCH_DEFINES arch_x86_64 arch_64bit)
|
||||
list(
|
||||
APPEND
|
||||
CAP_DEFINES
|
||||
APPEND CAP_DEFINES
|
||||
cap_32_64
|
||||
cap_fixpoint_gen
|
||||
cap_noaddr_gen
|
||||
@@ -97,8 +95,7 @@ endif()
|
||||
if(PLATFORM MATCHES linux)
|
||||
set(OS_DEFINES os_linux)
|
||||
list(
|
||||
APPEND
|
||||
CAP_DEFINES
|
||||
APPEND CAP_DEFINES
|
||||
cap_async_events
|
||||
cap_binary_rewriter
|
||||
cap_dwarf
|
||||
@@ -109,8 +106,7 @@ if(PLATFORM MATCHES linux)
|
||||
elseif(PLATFORM MATCHES cnl)
|
||||
set(OS_DEFINES os_linux os_cnl)
|
||||
list(
|
||||
APPEND
|
||||
CAP_DEFINES
|
||||
APPEND CAP_DEFINES
|
||||
cap_async_events
|
||||
cap_binary_rewriter
|
||||
cap_dwarf
|
||||
|
||||
Reference in New Issue
Block a user