[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44129: Patch to improve valac version detection

From: Reuben Thomas
Subject: bug#44129: Patch to improve valac version detection
Date: Wed, 21 Oct 2020 23:37:51 +0100

Attached, a patch to improve valac version detection. The vala compiler, valac, can report the API version it supports. For releases, this is the same as the major & minor version of the compiler, so for example:

$ valac --version
Vala 0.48.11
$ valac --api-version

The advantage of using the API version is that it's semantically meaningful. It's also simpler to parse! It can be to allow a 3rd-party, patched, or unreleased compiler to be used more easily.

(For example, the current Vala git master compiler reports:

$ valac-0.52 --version
$ valac-0.52 --api-version



Attachment: 0001-Improve-Vala-compiler-detection-use-API-version-not-.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]