Skip to content

Commit 64bcb9e

Browse files
rrthomasricotz
authored andcommitted
build: Add the ability to use a different version of valac
Document the need to use --disable-unversioned
1 parent 5ff0b72 commit 64bcb9e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VALAC = valac
1+
VALAC ?= valac
22
PACKAGES ?= --all
33
GENERATOR_OPTS ?= --disable-devhelp --skip-existing
44
VALAC_VERSION := $(shell $(VALAC) --api-version | awk -F. '{ print "0."$$2 }')

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ sudo make install
7272
to install the devhelp books in your system. Now launch Devhelp and use them!
7373

7474

75+
Using a different version of Vala
76+
=================================
77+
78+
You may want or need to test Valadoc with a different version of Vala, for example to pick up fixes in Vala that are necessary to build example code. You can do this with a chroot or jhbuild; or if your valac’s API version is different from other versions you have installed, just set `VALAC=valac-X.YY` in your environment when running `make`.
79+
80+
7581
Searching
7682
=========
7783

0 commit comments

Comments
 (0)