Skip to content

Commit

Permalink
[build images]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Dec 11, 2024
1 parent 9f3558b commit 2b81932
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -973,10 +973,10 @@ install_gcc() {
append_to_profile "export AR=llvm-ar-${llvm_v}"
append_to_profile "export RANLIB=llvm-ranlib-${llvm_v}"
append_to_profile "export LD=lld-${llvm_v}"
append_to_profile "export LD_LIBRARY_PATH=/usr/lib/gcc/${arch_triplet}/${gcc_version}:/usr/lib/${arch_triplet}"
append_to_profile "export LIBRARY_PATH=/usr/lib/gcc/${arch_triplet}/${gcc_version}:/usr/lib/${arch_triplet}"
append_to_profile "export CPLUS_INCLUDE_PATH=/usr/include/c++/${gcc_version}:/usr/include/${arch_triplet}/c++/${gcc_version}"
append_to_profile "export C_INCLUDE_PATH=/usr/lib/gcc/${arch_triplet}/${gcc_version}/include"
append_to_profile "export LD_LIBRARY_PATH=/usr/lib/gcc/${arch_path}/${gcc_version}:/usr/lib/${arch_path}"
append_to_profile "export LIBRARY_PATH=/usr/lib/gcc/${arch_path}/${gcc_version}:/usr/lib/${arch_path}"
append_to_profile "export CPLUS_INCLUDE_PATH=/usr/include/c++/${gcc_version}:/usr/include/${arch_path}/c++/${gcc_version}"
append_to_profile "export C_INCLUDE_PATH=/usr/lib/gcc/${arch_path}/${gcc_version}/include"

gcc_path="/usr/lib/gcc/$arch_path/$gcc_version"
create_directory "$gcc_path"
Expand All @@ -987,13 +987,13 @@ install_gcc() {
append_file "$ld_conf_path" "/usr/lib/$arch_path"
execute_sudo ldconfig

execute_sudo ln -sf $(which clang-${llvm_v}) /usr/bin/clang
execute_sudo ln -sf $(which clang+${llvm_v}) /usr/bin/clang++
execute_sudo ln -sf $(which lld-${llvm_v}) /usr/bin/lld
execute_sudo ln -sf $(which lldb-${llvm_v}) /usr/bin/lldb
execute_sudo ln -sf $(which clangd-${llvm_v}) /usr/bin/clangd
execute_sudo ln -sf $(which llvm-ar-${llvm_v}) /usr/bin/llvm-ar
execute_sudo ln -sf $(which ld.lld-${llvm_v}) /usr/bin/ld
execute_sudo ln -sf $(which clang-$llvm_v) /usr/bin/clang
execute_sudo ln -sf $(which clang++-$llvm_v) /usr/bin/clang++
execute_sudo ln -sf $(which lld-$llvm_v) /usr/bin/lld
execute_sudo ln -sf $(which lldb-$llvm_v) /usr/bin/lldb
execute_sudo ln -sf $(which clangd-$llvm_v) /usr/bin/clangd
execute_sudo ln -sf $(which llvm-ar-$llvm_v) /usr/bin/llvm-ar
execute_sudo ln -sf $(which ld.lld-$llvm_v) /usr/bin/ld
execute_sudo ln -sf $(which clang) /usr/bin/cc
execute_sudo ln -sf $(which clang++) /usr/bin/c++
}
Expand Down

0 comments on commit 2b81932

Please sign in to comment.