File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
qemu_runner/conan/profiles Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,16 @@ endif()
8282set (CONAN_VERBOSITY "error" )
8383set (CONAN_BINARY_DIR "${CMAKE_BINARY_DIR} /conan2" )
8484
85- if (NOT DEFINED CONAN_PROFILE)
85+ # Check if a custom host profile is provided (e.g., for cross-compilation)
86+ if (DEFINED CONAN_PROFILE_HOST AND EXISTS "${CONAN_PROFILE_HOST} " )
87+ message (STATUS "CONAN_PROFILE: Using custom host profile: ${CONAN_PROFILE_HOST} " )
88+ # Override the CACHE variables that conan_provider.cmake uses
89+ set (CONAN_HOST_PROFILE "${CONAN_PROFILE_HOST} " CACHE STRING "Conan host profile" FORCE)
90+ set (CONAN_BUILD_PROFILE "default" CACHE STRING "Conan build profile" FORCE)
91+ elseif (NOT DEFINED CONAN_PROFILE)
8692 guess_conan_profile()
8793endif ()
88- message (VERBOSE "CONAN_PROFILE: ${CONAN_PROFILE} " )
94+ message (STATUS "CONAN_PROFILE: ${CONAN_PROFILE} " )
8995# set(CONAN_PROFILE_PATH "${CMAKE_SOURCE_DIR}/cmake/profiles/${CONAN_PROFILE}")
9096# set(CONAN_HOST_PROFILE "${CONAN_PROFILE_PATH}")
9197# set(CONAN_BUILD_PROFILE "${CONAN_PROFILE_PATH}")
Original file line number Diff line number Diff line change 11[settings]
22os=baremetal
33arch=riscv32
4- compiler=riscv-none-elf- gcc
4+ compiler=gcc
55compiler.version=15
66compiler.libcxx=libstdc++11
77compiler.cppstd=gnu23
You can’t perform that action at this time.
0 commit comments