diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-07-05 09:45:04 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-08-25 17:09:28 +0200 |
commit | 6094651fe7f5fe3fc93899011b8ef8dd3fd61a58 (patch) | |
tree | a5609745deb693cd3f39cc8be38c1827c86bb633 /CC/foreign/cmake/EXPRESSIONS | |
parent | c9e2db5ba96afee9224ef173a8b2110d3a99a23d (diff) | |
download | rules-cc-6094651fe7f5fe3fc93899011b8ef8dd3fd61a58.tar.gz |
foreign: Fix resolve abs path of build tools
Diffstat (limited to 'CC/foreign/cmake/EXPRESSIONS')
-rw-r--r-- | CC/foreign/cmake/EXPRESSIONS | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CC/foreign/cmake/EXPRESSIONS b/CC/foreign/cmake/EXPRESSIONS index 9956bda..6865e7c 100644 --- a/CC/foreign/cmake/EXPRESSIONS +++ b/CC/foreign/cmake/EXPRESSIONS @@ -270,6 +270,9 @@ , "export TMPDIR=\"$(pwd)/scratch\"" , "export TOOLCHAIN=\"$(pwd)/toolchain\"" , "export LOCALBASE=\"$(pwd)/localbase\"" + , "export CC=$([ -x \"${CC}\" ] && realpath ${CC} || echo ${CC})" + , "export CXX=$([ -x \"${CXX}\" ] && realpath ${CXX} || echo ${CXX})" + , "export AR=$([ -x \"${AR}\" ] && realpath ${AR} || echo ${AR})" , "export MAKE=$([ -x \"${MAKE}\" ] && realpath ${MAKE} || echo ${MAKE})" , "export CMAKE=$([ -x \"${CMAKE}\" ] && realpath ${CMAKE} || echo ${CMAKE})" , { "type": "join" |