Skip to content

Commit fe42698

Browse files
committed
build: Add the ability to use a different version of valac
Document the need to use --disable-unversioned
1 parent d63e12a commit fe42698

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
@@ -52,6 +52,12 @@ you completed building, you should see a `valadoc.org` folder.
5252
To access the documentation navigate your browser to http://localhost:7777.
5353

5454

55+
Using a different version of Vala
56+
=================================
57+
58+
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`.
59+
60+
5561
Searching
5662
=========
5763

0 commit comments

Comments
 (0)