diff --git a/docs/markdown/Adding-arguments.md b/docs/markdown/Adding-arguments.md index e3141020c..117622b17 100644 --- a/docs/markdown/Adding-arguments.md +++ b/docs/markdown/Adding-arguments.md @@ -49,6 +49,8 @@ executable('prog', 'prog.cc', cpp_args : '-DCPPTHING') Here we create a C++ executable with an extra argument that is used during compilation but not for linking. +You can find the parameter name for other languages in the [reference tables](Reference-tables.md). + Specifying extra linker arguments is done in the same way: ```meson diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index 5ee0db128..4b7006e5b 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -63,3 +63,21 @@ These are provided by the `.system()` method call. Any string not listed above is not guaranteed to remain stable in future releases. + + +## Language arguments parameter names + +These are the parameter names for passing language specific arguments to your build target. + +| Language | Parameter name | +| ----- | ----- +| C | c_args | +| C++ | cpp_args | +| C# | cs_args | +| D | d_args | +| Fortran | fortran_args | +| Java | java_args | +| Objective C | objc_args | +| Objective C++ | objcpp_args | +| Rust | rust_args | +| Vala | vala_args |