JIT: Clarify documentation for adding compiler options.
The documentation for `gcc_jit_context_add_command_line_option` and `gcc_jit_context_add_driver_option` now explicitly states that multiple options require mul…
The documentation for gcc_jit_context_add_command_line_option and gcc_jit_context_add_driver_option in the libgccjit library has been clarified. The updated documentation emphasizes that adding multiple compiler options requires multiple calls to these functions. This prevents confusion and ensures correct usage of the API.
In Details
This commit clarifies the usage of gcc_jit_context_add_command_line_option and gcc_jit_context_add_driver_option in libgccjit. These functions allow injecting compiler options into the JIT compilation process. The documentation is updated to explicitly state the need for multiple calls when adding multiple options to avoid misinterpretation.
For Context
This commit clarifies the documentation for the libgccjit library, which allows programs to generate machine code at runtime. Specifically, it explains how to pass compiler options to the JIT compiler. The documentation now explicitly states that you need to call the relevant functions once for each option you want to add.