diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-30 10:24:13 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-07 14:48:55 +0100 |
commit | ea802ce335c004c6e4d3f12c6bffe308f3c96cdb (patch) | |
tree | d46ff7b17c4516bbdb1e04589de9ec1674ac89a9 | |
parent | eba3da82bee23f1fb36a391713561ac0d32048c6 (diff) | |
download | bootstrappable-toolchain-ea802ce335c004c6e4d3f12c6bffe308f3c96cdb.tar.gz |
Install binutils for clang-18 to a separate directory
...to avoid potential staging conflicts.
-rw-r--r-- | src/compilers/clang-18-native.TARGETS | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/compilers/clang-18-native.TARGETS b/src/compilers/clang-18-native.TARGETS index aeb4cc7..ee433f7 100644 --- a/src/compilers/clang-18-native.TARGETS +++ b/src/compilers/clang-18-native.TARGETS @@ -57,11 +57,15 @@ ] , "out_dirs": ["."] } +, "binutils_dir": + { "type": "install" + , "dirs": [[["@", "binutils", "", "binutils"], "binutils"]] + } , "clang-native": { "type": ["@", "rules", "CC/foreign/shell", "data"] , "arguments_config": ["TOOLCHAIN_CONFIG"] , "project": ["patched_sources"] - , "localbase": [["@", "binutils", "", "binutils"]] + , "localbase": ["binutils_dir"] , "cmds": [ { "type": "join" , "$1": @@ -111,7 +115,7 @@ , "NJOBS=$(nproc --all 2>/dev/null || echo 1)" , "HOST_TRIPLE=$(${CC} -dumpmachine)" , "GCC_TOOLCHAIN=$(dirname ${CC})/.." - , "export PATH=${LOCALBASE}/bin:$PATH" + , "export PATH=${LOCALBASE}/binutils/bin:$PATH" , "export PKG_CONFIG=false" , "export LD_LIBRARY_PATH=\"${GCC_TOOLCHAIN}/lib64\"" , "unset LDFLAGS" @@ -130,7 +134,7 @@ , "if [ -n \"$HOST_DYNAMIC_LINKER\" ]; then" , " LINK_ARGS=\"$LINK_ARGS -Xlinker --dynamic-linker -Xlinker $HOST_DYNAMIC_LINKER\"" , "fi" - , "cp -r ${LOCALBASE}/. ${DESTDIR}/." + , "cp -r ${LOCALBASE}/binutils/. ${DESTDIR}/." , "chmod -R +w ${DESTDIR}/*" , "mkdir build" , { "type": "join" |