diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-02 20:56:27 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-17 19:40:19 +0100 |
commit | f4b86c1e2aa0b74f843fc64de919390f6af46952 (patch) | |
tree | ce7956a087ac62d0e441b59746e058fa0276c602 /compiler/valacompiler.vala | |
parent | 1229ead2f945d913b3264f898f363aa4bf46f217 (diff) | |
download | vala-f4b86c1e2aa0b74f843fc64de919390f6af46952.tar.gz |
vala: Add support for --target-glib=auto
Determine target-glib according to the available version of glib-2.0.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/761
Diffstat (limited to 'compiler/valacompiler.vala')
-rw-r--r-- | compiler/valacompiler.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 476093e7e..7394e45da 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -153,7 +153,7 @@ class Vala.Compiler { { "verbose", 'v', 0, OptionArg.NONE, ref verbose_mode, "Print additional messages to the console", null }, { "no-color", 0, 0, OptionArg.NONE, ref disable_colored_output, "Disable colored output, alias for --color=never", null }, { "color", 0, OptionFlags.OPTIONAL_ARG, OptionArg.CALLBACK, (void*) option_parse_color, "Enable color output, options are 'always', 'never', or 'auto'", "WHEN" }, - { "target-glib", 0, 0, OptionArg.STRING, ref target_glib, "Target version of glib for code generation", "MAJOR.MINOR" }, + { "target-glib", 0, 0, OptionArg.STRING, ref target_glib, "Target version of glib for code generation", "'MAJOR.MINOR', or 'auto'" }, { "gresources", 0, 0, OptionArg.FILENAME_ARRAY, ref gresources, "XML of gresources", "FILE..." }, { "gresourcesdir", 0, 0, OptionArg.FILENAME_ARRAY, ref gresources_directories, "Look for resources in DIRECTORY", "DIRECTORY..." }, { "enable-version-header", 0, 0, OptionArg.NONE, ref enable_version_header, "Write vala build version in generated files", null }, |