Skip to content

Test Case with Clang and libc++ related to cmake-conan issue

License

Notifications You must be signed in to change notification settings

ibis-hdl/conan-cmake-issue

Repository files navigation

Using CMake-Conan provider, where conan presets are:

> conan profile show -pr=default
Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux

Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux
> conan profile show -pr=clang-libc++
Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=18
os=Linux
[conf]
tools.build:compiler_executables={'c': '/usr/bin/clang', 'cpp': '/usr/bin/clang++'}
[buildenv]
CC=clang
CXX=clang++

Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=13
os=Linux

Using simple Clang works as expected:

> rm -rf build; cmake --preset clang && cmake --build --preset clang-release

where with libc++ failed to compile due to conan's dependency:

> rm -rf build; cmake --preset clang-libc++ && cmake --build --preset clang-libc++-release

Simply run python3 build.py to face the issue. I create all the profiles by using devcontainer postStartCommand.sh configure_conan_profile().

About

Test Case with Clang and libc++ related to cmake-conan issue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published