From bf0b4de44f1c2d011966fba81f7ec4acc81f5c1b Mon Sep 17 00:00:00 2001 From: Francisco Ramirez de Anton Date: Mon, 7 Nov 2022 08:46:51 +0100 Subject: [PATCH] Added stdcpp_library reference --- reference/conanfile/tools/build.rst | 30 +++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/reference/conanfile/tools/build.rst b/reference/conanfile/tools/build.rst index 498fca4c5d23..ae8c93497bf3 100644 --- a/reference/conanfile/tools/build.rst +++ b/reference/conanfile/tools/build.rst @@ -3,8 +3,8 @@ conan.tools.build ================= -conan.tools.build.cross_building() ----------------------------------- +conan.tools.build.cross_building +-------------------------------- Available since: `1.46.0 `_ @@ -24,8 +24,8 @@ Parameters: for example. -conan.tools.build.can_run() ---------------------------- +conan.tools.build.can_run +------------------------- Available since: `1.49.0 `_ @@ -109,8 +109,26 @@ Parameters: - **compiler_version**: Version of the compiler e.g: 12 -conan.tools.build.build_jobs() ------------------------------- +conan.tools.build.stdcpp_library +-------------------------------- + +Available since: `1.54.0 `_ + +.. code-block:: python + + def stdcpp_library(conanfile): + + +Get the valid name of the C++ standard library for the linker based on the current settings and its +``compiler.libcxx`` value. Returns ``None`` if ``compiler.libcxx`` value is unknown. + +Parameters: + +- **conanfile**: The current recipe object. Always use ``self``. + + +conan.tools.build.build_jobs +---------------------------- Available since: `1.43.0 `_