39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
# Windows target cross (Clang) from Linux host
|
|
#
|
|
# IMPORTANT:
|
|
# - This profile describes the *output platform* (target), so [settings] os=Windows.
|
|
# - Use a "windows-..." prefix to avoid misleading readers into thinking the output is Linux.
|
|
#
|
|
# Profile naming convention (suggested):
|
|
# windows-<arch>-clang<major>-cross
|
|
|
|
[settings]
|
|
os=Windows
|
|
arch=x86_64
|
|
compiler=clang
|
|
compiler.version=20
|
|
compiler.runtime=static
|
|
compiler.libcxx=libc++
|
|
compiler.cppstd=23
|
|
build_type=Release
|
|
|
|
[conf]
|
|
# Configure your cross clang executables here (do NOT hardcode a specific distro name in docs).
|
|
tools.build:compiler_executables={"c": "<TOOLCHAIN_ROOT>/bin/x86_64-w64-mingw32-clang", "cpp": "<TOOLCHAIN_ROOT>/bin/x86_64-w64-mingw32-clang++"}
|
|
|
|
# Tell Conan/CMake the target triple and platform.
|
|
tools.gnu:host_triplet=x86_64-w64-mingw32
|
|
tools.cmake.cmaketoolchain:generator=Ninja
|
|
tools.cmake.cmaketoolchain:system_name=Windows
|
|
tools.cmake.cmaketoolchain:system_processor=x86_64
|
|
tools.cmake.cmaketoolchain:system_version=11
|
|
|
|
# Keep Conan's cmake_layout output stable and predictable.
|
|
tools.cmake.cmake_layout:build_folder=.
|
|
tools.cmake.cmake_layout:build_folder_vars=[]
|
|
|
|
[buildenv]
|
|
# Resource compiler (optional; adjust if your toolchain uses a different windres name/path).
|
|
RC=x86_64-w64-mingw32-windres
|
|
|