Files
TheRock/rocm-systems/projects/rocprofiler-systems/external/dyninst/cmake/DyninstCapArchDef.cmake
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

81 lines
2.4 KiB
CMake

#
# -- Define the capabilities for each supported architecture/platform
#
# cap_32_64 - This host 64-bit platform supports modifying 32-bit binaries
#
include_guard(GLOBAL)
set(CAP_DEFINES -Dcap_dynamic_heap -Dcap_liveness -Dcap_threads)
if(DYNINST_ARCH_i386)
set(ARCH_DEFINES -Darch_x86)
set(CAP_DEFINES
${CAP_DEFINES}
-Dcap_fixpoint_gen
-Dcap_noaddr_gen
-Dcap_stripped_binaries
-Dcap_tramp_liveness
-Dcap_virtual_registers
-Dcap_stack_mods)
elseif(DYNINST_ARCH_x86_64)
set(ARCH_DEFINES -Darch_x86_64 -Darch_64bit)
set(CAP_DEFINES
${CAP_DEFINES}
-Dcap_32_64
-Dcap_fixpoint_gen
-Dcap_noaddr_gen
-Dcap_registers
-Dcap_stripped_binaries
-Dcap_tramp_liveness
-Dcap_stack_mods)
elseif(DYNINST_ARCH_ppc64le)
set(ARCH_DEFINES -Darch_power -Darch_64bit)
set(CAP_DEFINES ${CAP_DEFINES} -Dcap_32_64 -Dcap_registers -Dcap_toc_64)
elseif(DYNINST_ARCH_aarch64)
set(ARCH_DEFINES -Darch_aarch64 -Darch_64bit)
set(CAP_DEFINES ${CAP_DEFINES} -Dcap_registers)
endif()
if(DYNINST_OS_Linux)
set(OS_DEFINES -Dos_linux)
set(CAP_DEFINES ${CAP_DEFINES} -Dcap_async_events -Dcap_binary_rewriter -Dcap_dwarf
-Dcap_mutatee_traps -Dcap_ptrace)
set(BUG_DEFINES -Dbug_syscall_changepc_rewind -Dbug_force_terminate_failure)
if(DYNINST_ARCH_i386)
set(OLD_DEFINES -Di386_unknown_linux2_0)
elseif(DYNINST_ARCH_x86_64)
set(OLD_DEFINES -Dx86_64_unknown_linux2_4)
elseif(DYNINST_ARCH_ppc64le)
set(OLD_DEFINES -Dppc64_linux)
set(BUG_DEFINES ${BUG_DEFINES} -Dbug_registers_after_exit)
elseif(DYNINST_ARCH_aarch64)
set(OLD_DEFINES -Daarch64_unknown_linux)
endif()
elseif(DYNINST_OS_FreeBSD)
set(OS_DEFINES -Dos_freebsd)
set(CAP_DEFINES ${CAP_DEFINES} -Dcap_binary_rewriter -Dcap_dwarf -Dcap_mutatee_traps)
set(BUG_DEFINES
-Dbug_freebsd_missing_sigstop -Dbug_freebsd_mt_suspend -Dbug_freebsd_change_pc
-Dbug_phdrs_first_page -Dbug_syscall_changepc_rewind)
if(DYNINST_ARCH_i386)
set(OLD_DEFINES -Di386_unknown_freebsd7_0)
elseif(DYNINST_ARCH_x86_64)
set(OLD_DEFINES -Damd64_unknown_freebsd7_0)
endif()
elseif(DYNINST_OS_Windows)
set(OS_DEFINES -Dos_windows)
set(CAP_DEFINES ${CAP_DEFINES} -Dcap_mutatee_traps)
set(OLD_DEFINES -Di386_unknown_nt4_0)
endif()
set(DYNINST_PLATFORM_CAPABILITIES ${CAP_DEFINES} ${BUG_DEFINES} ${ARCH_DEFINES}
${OS_DEFINES} ${OLD_DEFINES})