Browse Source
Replaced static clang compiler configuration with dynamic detection using the `detect_api` functionality. This change ensures that the compiler and its version are automatically identified, improving flexibility and compatibility with different environments. The executable paths for C and C++ compilers are now dynamically set, enhancing build robustness. Contribute to NP-637NP-637_conan_v2_wasm
1 changed files with 4 additions and 7 deletions
@ -1,13 +1,10 @@ |
|||||||
include(cura.jinja) |
include(cura.jinja) |
||||||
|
{% set compiler, version, compiler_exe = detect_api.detect_clang_compiler(compiler_exe="clang") %} |
||||||
[tool_requires] |
|
||||||
|
|
||||||
[settings] |
[settings] |
||||||
compiler=clang |
compiler={{ compiler }} |
||||||
compiler.version=18 |
compiler.version={{ version.major }} |
||||||
compiler.libcxx=libstdc++11 |
compiler.libcxx=libstdc++11 |
||||||
|
|
||||||
[options] |
|
||||||
|
|
||||||
[conf] |
[conf] |
||||||
tools.build:compiler_executables={"c":"clang", "cpp":"clang++"} |
tools.build:compiler_executables={"c":"{{ compiler_exe }}", "cpp":"{{ compiler_exe }}++"} |
||||||
|
|||||||
Loading…
Reference in new issue