diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-12-31 06:42:51 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-12-31 06:47:31 +0100 |
commit | 7560e8700e2c72cd4a11cfe818907bd9da76e800 (patch) | |
tree | bf93850cd47285398ff6bd5ea261d74ff6793b55 /tools | |
parent | 1930f138d4836f8ed9613a17bfe09dc53441618a (diff) | |
download | liberty-7560e8700e2c72cd4a11cfe818907bd9da76e800.tar.gz liberty-7560e8700e2c72cd4a11cfe818907bd9da76e800.tar.xz liberty-7560e8700e2c72cd4a11cfe818907bd9da76e800.zip |
cmake-parser: improve portability
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cmake-parser.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cmake-parser.awk b/tools/cmake-parser.awk index 43c5f2c..23329de 100644 --- a/tools/cmake-parser.awk +++ b/tools/cmake-parser.awk @@ -75,7 +75,7 @@ function line_ending() { # it doesn't seem to be worth the effort. function expand(s, v) { v = s - while (match(v, /\\*[$](|ENV|CACHE)[{]/)) { + while (match(v, /\\*[$](ENV|CACHE)?[{]/)) { if (index(substr(v, RSTART), "$") % 2 != 0) { warning("variable expansion is not supported: " s) return s |