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
32 lines
1.2 KiB
CMake
32 lines
1.2 KiB
CMake
# Copyright Advanced Micro Devices, Inc.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Assemble CC/CXX env strings for Meson from CMake's compiler and launcher
|
|
# variables (which are already set correctly in the sub-project toolchain).
|
|
#
|
|
# CMAKE_C_COMPILER_LAUNCHER is a CMake list (semicolon-separated) to support
|
|
# chained launchers (e.g. "ccache;distcc"). Meson expects a space-separated
|
|
# string, so the launcher is joined with spaces before being prepended to the
|
|
# compiler path.
|
|
#
|
|
# Usage:
|
|
# include("${THEROCK_SOURCE_DIR}/cmake/therock_meson_env.cmake")
|
|
# therock_get_meson_compiler_env(_meson_cc _meson_cxx)
|
|
# # Then pass to meson via cmake -E env:
|
|
# # "CC=${_meson_cc}"
|
|
# # "CXX=${_meson_cxx}"
|
|
function(therock_get_meson_compiler_env out_cc out_cxx)
|
|
set(_cc "${CMAKE_C_COMPILER}")
|
|
set(_cxx "${CMAKE_CXX_COMPILER}")
|
|
if(CMAKE_C_COMPILER_LAUNCHER)
|
|
string(REPLACE ";" " " _c_launcher "${CMAKE_C_COMPILER_LAUNCHER}")
|
|
set(_cc "${_c_launcher} ${_cc}")
|
|
endif()
|
|
if(CMAKE_CXX_COMPILER_LAUNCHER)
|
|
string(REPLACE ";" " " _cxx_launcher "${CMAKE_CXX_COMPILER_LAUNCHER}")
|
|
set(_cxx "${_cxx_launcher} ${_cxx}")
|
|
endif()
|
|
set(${out_cc} "${_cc}" PARENT_SCOPE)
|
|
set(${out_cxx} "${_cxx}" PARENT_SCOPE)
|
|
endfunction()
|