get_target_triple¶
- selene_core.build_utils.utils.get_target_triple(arch: str | None = None, system: str | None = None) str | None ¶
MacOS needs pointing to libSystem compatible with 11.0, as the default is the current platform which selene components might be incompatible with.
Windows needs pointing to MSVC, as the default is MinGW, and selene components are shipped with MSVC bindings.
Linux doesn’t need further specification, as the default behaviour is correct. Using e.g. “x86_64-linux-gnu” would fail on nixos, for example.