-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhost
More file actions
40 lines (35 loc) · 1.56 KB
/
host
File metadata and controls
40 lines (35 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[buildenv]
# TODO: brew's LLVM is build with libstdc++, can't use libc++
# CXXFLAGS=-stdlib++-isystem ${HOMEBREW_PREFIX}/include/c++/v1
# LDFLAGS=-L${HOMEBREW_PREFIX}/lib -Wl,-rpath,${HOMEBREW_PREFIX}/lib
[conf]
tools.build:compiler_executables={'c': 'clang', 'cpp': 'clang++'}
# CMAKE_EXPERIMENTAL_*: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Help/dev/experimental.rst?ref_type=heads
# CMAKE_LINKER_TYPE: TODO: https://github.com/conan-io/conan/issues/15864, https://github.com/conan-io/conan/issues/14174
# CMAKE_OPTIMIZE_DEPENDENCIES known to cause issues:
# - https://github.com/conan-io/conan-center-index/issues/29431#issuecomment-3804881699
# - https://gitlab.kitware.com/cmake/cmake/-/work_items/27777
{%
set cmake_extra_variables = {
'CMAKE_COLOR_DIAGNOSTICS': 'ON',
'CMAKE_CXX_VISIBILITY_PRESET': 'hidden',
'CMAKE_EXPERIMENTAL_CXX_IMPORT_STD': '451f2fe2-a8a2-47c3-bc32-94786d8fc91b',
'CMAKE_EXPERIMENTAL_EXPORT_BUILD_DATABASE': '73194a1d-c0b5-41b9-9190-a4512925e192',
'CMAKE_LINKER_TYPE': 'MOLD',
'CMAKE_OPTIMIZE_DEPENDENCIES': 'OFF',
'CMAKE_VISIBILITY_INLINES_HIDDEN': 'ON'
}
%}
tools.cmake.cmaketoolchain:extra_variables={{ cmake_extra_variables }}
tools.cmake.cmaketoolchain:generator=Ninja Multi-Config
[platform_tool_requires]
# Tell Conan to look for CMake on the machine instead of installing it itself
cmake/4.3.2
[settings]
arch=x86_64
compiler=clang
# TODO: https://github.com/conan-io/conan-center-index/issues/26390
compiler.cppstd=26
compiler.libcxx=libstdc++11
compiler.version=22
os=Linux