Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added stdcpp_library reference #2804

Merged
merged 1 commit into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions reference/conanfile/tools/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
conan.tools.build
=================

conan.tools.build.cross_building()
----------------------------------
conan.tools.build.cross_building
--------------------------------

Available since: `1.46.0 <https://github.com/conan-io/conan/releases/tag/1.46.0>`_

Expand All @@ -24,8 +24,8 @@ Parameters:
for example.


conan.tools.build.can_run()
---------------------------
conan.tools.build.can_run
-------------------------

Available since: `1.49.0 <https://github.com/conan-io/conan/releases/tag/1.49.0>`_

Expand Down Expand Up @@ -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 <https://github.com/conan-io/conan/releases/tag/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 <https://github.com/conan-io/conan/releases/tag/1.43.0>`_

Expand Down