blaise/compiler
Graeme Geldenhuys 5e9ec4eeec fix(config): expand ~ in blaise.cfg unit-path / rtl-src values
A blaise.cfg value like `rtl-src=~/devel/blaise/compiler/src/main/pascal` was
treated as RELATIVE (only a leading '/' counted as absolute) and prefixed with
the config directory, and the `~` was never expanded — producing a bogus path
like `/home/user/cwd/~/devel/...` and an "RTL source directory not found" error.

Resolve config paths through a shared helper: a leading '~' or '~/' expands to
$HOME (and is treated as absolute); a leading '/' is used as is; anything else
is relative to the config file's directory.  Applies to both unit-path= and
rtl-src=.  If $HOME is unset, '~' is left untouched rather than mis-resolved.

Tests: TConfigTests.TestParseTildePath_ExpandsToHome and
TestParseRtlSrcTilde_ExpandsToHome.  Verified end-to-end: a blaise.cfg using
`~/...` for unit-path + rtl-src compiles with no path flags from any CWD.
2026-07-02 12:46:41 +01:00
..
src fix(config): expand ~ in blaise.cfg unit-path / rtl-src values 2026-07-02 12:46:41 +01:00
project.xml refactor(rtl): relocate RTL units into the compiler tree (dotted-flat names) 2026-06-25 16:05:44 +01:00