summaryrefslogtreecommitdiff
path: root/CC/foreign/cmake
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-30 16:18:07 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-11-30 16:35:52 +0100
commita4256c55038013be9fb3fbfe0f2e139609bc0504 (patch)
treec12921da5ec60dbab8a54eb583302b298075379d /CC/foreign/cmake
parent96f7a9f47ee4dafccced87e44f98afa3f14a3df9 (diff)
downloadrules-cc-a4256c55038013be9fb3fbfe0f2e139609bc0504.tar.gz
CC/foreign/shell rules: avoid empty path segment
... and hence accidentally picking up executables from the current working directory.
Diffstat (limited to 'CC/foreign/cmake')
-rw-r--r--CC/foreign/cmake/EXPRESSIONS2
1 files changed, 1 insertions, 1 deletions
diff --git a/CC/foreign/cmake/EXPRESSIONS b/CC/foreign/cmake/EXPRESSIONS
index b4a9147..9b264d8 100644
--- a/CC/foreign/cmake/EXPRESSIONS
+++ b/CC/foreign/cmake/EXPRESSIONS
@@ -279,7 +279,7 @@
, { "type": "join_cmd"
, "$1": [{"type": "var", "name": "PATH"}]
}
- , ")\":$PATH"
+ , ")${PATH:+:}${PATH}\""
]
}
]