Open LargoUsagi opened 1 year ago
This profile passed on the same system will complete successfully
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.version=12
compiler.libcxx=libstdc++11
[options]
[build_requires]
[env]
CC=C:/msys64/mingw64/bin/gcc
CXX=C:/msys64/mingw64/bin/g++
This is a never ended story where we fix a clang windows flavor and break another one, until we can have some conan helper like https://github.com/conan-io/conan/issues/12336. For the moment assume that conan-center recipes don't support clang flavors targeting Windows, because we don't have any easy way to predict lib names of libraries built with CMake when they rely on MINGW or MSVC variables to change lib name.
/cc @memsharded
This is a never ended story where we fix a clang windows flavor and break another one, until we can have some conan helper like conan-io/conan#12336. For the moment assume that conan-center recipes don't support clang flavors targeting Windows.
/cc @memsharded
Does that include if you use clang/llvm with MSVC
Yes, it may or may not work. Most recipes should work, and other fail to predict correct lib name or even use the proper build system.
Does it work with https://github.com/conan-io/conan-center-index/pull/14644?
I've submitted this to resolve this issue: https://github.com/conan-io/conan-center-index/pull/18283
If possible, please approve my PR: User-approval pending
Description
This compiles using GCC and Clang under Arch Linux, and GCC using mingw on windows, but I had the preference of using clang through mingw.
Package and Environment Details
Conan profile
[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 build_type=Release compiler=clang compiler.version=15 compiler.libcxx=libstdc++11 [options] [build_requires] [env] CC=C:/msys64/mingw64/bin/clang CXX=C:/msys64/mingw64/bin/clang++
Steps to reproduce
conan install . --build=missing --profile=gcc -if=cmake-build-release -s build_type=Release conan install . --build=missing --profile=gcc -if=cmake-build-debug -s build_type=Debug
Logs
Click to expand log
``` minizip/1.2.13: Copying sources to build folder minizip/1.2.13: Building your package in C:\Users\LargoUsagi\.conan\data\minizip\1.2.13\_\_\build\3822ec74d7dc1a129150f4f5e1c981542581f77c minizip/1.2.13: Generator txt created conanbuildinfo.txt minizip/1.2.13: Calling generate() minizip/1.2.13: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior minizip/1.2.13: Preset 'debug' added to CMakePresets.json. Invoke it manually using 'cmake --preset debug' minizip/1.2.13: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake