<commit_before>.. spelling::

  mytimer


.. _gcc_integration:


Compilers on command line
=========================

The **compiler_args** generator creates a file named ``conanbuildinfo.args`` containing a command
line arguments to invoke ``gcc``, ``clang`` or ``cl`` (Visual Studio) compiler.

Now we are going to compile the :ref:`getting started<getting_started>` example using **compiler_args** instead of the **cmake** generator.

Open ``conanfile.txt`` and change (or add) **compiler_args** generator:


.. code-block:: text

   [requires]
   Poco/1.9.0@pocoproject/stable

   [generators]
   compiler_args

Install the requirements (from the mytimer/build folder):

.. code-block:: bash

   $ conan install ..


.. note::

   Remember, if you don't specify settings in **install command** with **-s**, conan will use the detected defaults.
   You can always change them by editing the ``~/.conan/profiles/default`` or override them with "-s" parameters.


The generated ``conanbuildinfo.args``:

.. code-block:: text
<commit_msg>Update gcc.rst (#1186)<commit_after>.. spelling::

  mytimer


.. _gcc_integration:


Compilers on command line
=========================

The **compiler_args** generator creates a file named ``conanbuildinfo.args`` containing command
line arguments to invoke ``gcc``, ``clang`` or ``cl`` (Visual Studio) compiler.

Now we are going to compile the :ref:`getting started<getting_started>` example using **compiler_args** instead of the **cmake** generator.

Open ``conanfile.txt`` and change (or add) **compiler_args** generator:


.. code-block:: text

   [requires]
   Poco/1.9.0@pocoproject/stable

   [generators]
   compiler_args

Install the requirements (from the mytimer/build folder):

.. code-block:: bash

   $ conan install ..


.. note::

   Remember, if you don't specify settings in the **install command** with **-s**, Conan will use the detected defaults.
   You can always change them by editing the ``~/.conan/profiles/default`` or override them with "-s" parameters.


The generated ``conanbuildinfo.args`` show:

.. code-block:: text

{'fraction_non_alphanumeric': 0.1491395793499044, 'fraction_numerical': 0.004780114722753346, 'mean_word_length': 4.245614035087719, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2444322', 'n_tokens_mistral': 646, 'n_tokens_neox': 593, 'n_words': 223}