aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-12-31 06:42:51 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-12-31 06:47:31 +0100
commit7560e8700e2c72cd4a11cfe818907bd9da76e800 (patch)
treebf93850cd47285398ff6bd5ea261d74ff6793b55 /tools
parent1930f138d4836f8ed9613a17bfe09dc53441618a (diff)
downloadliberty-7560e8700e2c72cd4a11cfe818907bd9da76e800.tar.gz
liberty-7560e8700e2c72cd4a11cfe818907bd9da76e800.tar.xz
liberty-7560e8700e2c72cd4a11cfe818907bd9da76e800.zip
cmake-parser: improve portability
Diffstat (limited to 'tools')
-rw-r--r--tools/cmake-parser.awk2
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