summaryrefslogtreecommitdiff
path: root/src/compilers/clang-18-native.TARGETS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-09-27 14:30:39 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-09-27 15:57:24 +0200
commitaa079bbb57c26abafb29dde57508b3ce9d0567b6 (patch)
tree9d26af05a5f65b3489e02b95b88fac3515bba7bf /src/compilers/clang-18-native.TARGETS
parentbbf9c52ada2d028bf32b047b67a31c9331a6cf53 (diff)
downloadbootstrappable-toolchain-aa079bbb57c26abafb29dde57508b3ce9d0567b6.tar.gz
clang: use provided ${CMAKE} variable
... instead of hard-coding the name cmake.
Diffstat (limited to 'src/compilers/clang-18-native.TARGETS')
-rw-r--r--src/compilers/clang-18-native.TARGETS8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compilers/clang-18-native.TARGETS b/src/compilers/clang-18-native.TARGETS
index 3a97f30..aeb4cc7 100644
--- a/src/compilers/clang-18-native.TARGETS
+++ b/src/compilers/clang-18-native.TARGETS
@@ -136,7 +136,7 @@
, { "type": "join"
, "separator": " "
, "$1":
- [ "cmake"
+ [ "${CMAKE}"
, "-B"
, "build"
, "-S"
@@ -189,10 +189,10 @@
, ">configure.log 2>&1 || (cat configure.log && exit 1)"
]
}
- , "cmake --build build --target clang -j${NJOBS} >build.log 2>&1 || (cat configure.log build.log && exit 1)"
+ , "${CMAKE} --build build --target clang -j${NJOBS} >build.log 2>&1 || (cat configure.log build.log && exit 1)"
, "export LDFLAGS=\"--gcc-toolchain=${GCC_TOOLCHAIN} ${LINK_ARGS}\""
- , "cmake --build build --target all -j${NJOBS} >>build.log 2>&1 || (cat configure.log build.log && exit 1)"
- , "cmake --build build --target install -j${NJOBS} >>build.log 2>&1 || (cat configure.log build.log && exit 1)"
+ , "${CMAKE} --build build --target all -j${NJOBS} >>build.log 2>&1 || (cat configure.log build.log && exit 1)"
+ , "${CMAKE} --build build --target install -j${NJOBS} >>build.log 2>&1 || (cat configure.log build.log && exit 1)"
, "cd ${DESTDIR}"
, "strip ./bin/* 2>/dev/null || true"
, "find . -type f -name '*.so*' -exec sh -c \"strip {} 2>/dev/null\" \\;"