Browse Source

Update Clang profile to use dynamic version detection

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-637
NP-637_conan_v2_wasm
Jelle Spijker 1 year ago
parent
commit
ca8f19baea
  1. 11
      profiles/cura_clang.jinja

11
profiles/cura_clang.jinja

@ -1,13 +1,10 @@
include(cura.jinja)
[tool_requires]
{% set compiler, version, compiler_exe = detect_api.detect_clang_compiler(compiler_exe="clang") %}
[settings]
compiler=clang
compiler.version=18
compiler={{ compiler }}
compiler.version={{ version.major }}
compiler.libcxx=libstdc++11
[options]
[conf]
tools.build:compiler_executables={"c":"clang", "cpp":"clang++"}
tools.build:compiler_executables={"c":"{{ compiler_exe }}", "cpp":"{{ compiler_exe }}++"}

Loading…
Cancel
Save