summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-31 13:06:09 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-10-31 13:56:00 +0100
commit35048bc6be1a2f6b480c7210c420672295eee483 (patch)
tree6dbb5095feeee6a4b991c6d2713bb132001e40f6 /rules
parent1bac8a2d9f5e006c0ab5d417b3fd5cdf590d01de (diff)
downloadjustbuild-35048bc6be1a2f6b480c7210c420672295eee483.tar.gz
["lint", "targets"]: support TMPDIR
Diffstat (limited to 'rules')
-rw-r--r--rules/lint/RULES2
-rwxr-xr-xrules/lint/call_lint2
2 files changed, 4 insertions, 0 deletions
diff --git a/rules/lint/RULES b/rules/lint/RULES
index 04ad2301..e1000d9e 100644
--- a/rules/lint/RULES
+++ b/rules/lint/RULES
@@ -67,6 +67,8 @@
, " - at key \"direct deps artifact names\" a list of all input"
, " artifacts that come from the target itself or are runfiles of a"
, " direct dependency."
+ , "- TMPDIR pointing to a directory location that can be used to"
+ , " create additional temporary files."
, "It is supposed to indicate by the exit code whether the file to lint"
, "complies with the given linting policy, with 0 meaning"
, "compliant."
diff --git a/rules/lint/call_lint b/rules/lint/call_lint
index ca7e4ef3..fd2a2445 100755
--- a/rules/lint/call_lint
+++ b/rules/lint/call_lint
@@ -24,6 +24,8 @@ export OUT="$(pwd)/out"
mkdir -p config
export CONFIG="$(pwd)/config"
export META="$(pwd)/meta.json"
+mkdir scratch
+export TMPDIR=$(realpath scratch)
cd work