Skip to content

Commit 4ac5645

Browse files
committed
build: Add the ability to use a different version of valac
Document the need to use --disable-unversioned
1 parent 1378c06 commit 4ac5645

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. If your valac’s API version is different from other versions you have installed, you can configure with `--disable-unversioned`, and then set `VALAC=valac-0.xx` in your environment when running `make`.
59+
60+
5561
Searching
5662
=========
5763

0 commit comments

Comments
 (0)