diff --git a/component/BiShengCompiler/install.sh b/component/BiShengCompiler/install.sh index c17dd9f1be1d47bff98a96374ae6b5ed54cab1aa..999e89296f3418571da1a0ef6226e58df8e5c5c0 100644 --- a/component/BiShengCompiler/install.sh +++ b/component/BiShengCompiler/install.sh @@ -13,13 +13,14 @@ if [[ ${verify_signature} -eq "0" ]]; then clang_path=$(which clang) if [[ ${clang_path} != ${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang ]]; then - sed -i '/#*export BISHENG_COMPILER_HOME=${HOME}\/.local/d' ${HOME}/.bashrc - sed -i '/#*export PATH=${BISHENG_COMPILER_HOME}:${PATH}/d' ${HOME}/.bashrc + sed -i '/.*export BISHENG_COMPILER_HOME=${HOME}\/.local/d' ${HOME}/.bashrc + sed -i '/.*export .*=${BISHENG_COMPILER_HOME}.*/d' ${HOME}/.bashrc echo "change ${HOME}/.bashrc" cat >> ${HOME}/.bashrc <<'EOF' -export BISHENG_COMPILER_HOME=${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux/bin -export PATH=${BISHENG_COMPILER_HOME}:${PATH} +export BISHENG_COMPILER_HOME=${HOME}/.local/BiShengCompiler-3.2.0-aarch64-linux +export PATH=${BISHENG_COMPILER_HOME}/bin:${PATH} +export LD_LIBRARY_PATH=${BISHENG_COMPILER_HOME}/lib:${BISHENG_COMPILER_HOME}/lib/aarch64-unknown-linux-gnu:${LD_LIBRARY_PATH} EOF echo "source ${HOME}/.bashrc" set +x diff --git a/component/GCCforOpenEuler/install.sh b/component/GCCforOpenEuler/install.sh index 79a0409a4384f87548cd4f79de5a4631dde50d0a..c9730531787eec84ac4bf1d8400d190f5cca6539 100644 --- a/component/GCCforOpenEuler/install.sh +++ b/component/GCCforOpenEuler/install.sh @@ -13,13 +13,15 @@ if [[ ${verify_signature} -eq "0" ]]; then gcc_path=$(which gcc) if [[ ${gcc_path} != ${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux/bin/gcc ]]; then - sed -i '/#*export GCC_HOME=${HOME}\/.local/d' ${HOME}/.bashrc - sed -i '/#*export PATH=${GCC_HOME}:${PATH}/d' ${HOME}/.bashrc + sed -i '/.*export GCC_HOME=${HOME}\/.local/d' ${HOME}/.bashrc + sed -i '/.*export .*=${GCC_HOME}.*/d' ${HOME}/.bashrc echo "change ${HOME}/.bashrc" cat >> ${HOME}/.bashrc <<'EOF' -export GCC_HOME=${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux/bin -export PATH=${GCC_HOME}:${PATH} +export GCC_HOME=${HOME}/.local/gcc-10.3.1-2023.12-aarch64-linux +export PATH=${GCC_HOME}/bin:${PATH} +export INCLUDE=${GCC_HOME}/include:${INCLUDE} +export LD_LIBRARY_PATH=${GCC_HOME}/lib64:${LD_LIBRARY_PATH} EOF echo "source ${HOME}/.bashrc" set +x diff --git a/component/NonInvasiveSwitching/install.sh b/component/NonInvasiveSwitching/install.sh index 3ca3d01d79262e8e8318ae93bb4ae3cc55266947..f56792e223b9446ae5ba2eb08db64e5895fa30b2 100644 --- a/component/NonInvasiveSwitching/install.sh +++ b/component/NonInvasiveSwitching/install.sh @@ -3,19 +3,19 @@ set -e function main() { cat > "${HOME}"/.local/wrap-bin/clang <<'EOF' set -x -"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang "$@" -mcpu=tsv110 --O2 -g +"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang "$@" -mcpu=tsv110 -O3 -g EOF cat > "${HOME}"/.local/wrap-bin/clang++ <<'EOF' set -x -"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang++ "$@" -mcpu=tsv110 --O2 -g +"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang++ "$@" -mcpu=tsv110 -O3 -g EOF cat > "${HOME}"/.local/wrap-bin/gcc <<'EOF' set -x -"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang "$@" -mcpu=tsv110 --O2 -g +"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang "$@" -mcpu=tsv110 -O3 -g EOF cat > "${HOME}"/.local/wrap-bin/g++ <<'EOF' set -x -"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang++ "$@" -mcpu=tsv110 --O2 -g +"${HOME}"/.local/BiShengCompiler-3.2.0-aarch64-linux/bin/clang++ "$@" -mcpu=tsv110 -O3 -g EOF chmod +x "${HOME}"/.local/wrap-bin/clang chmod +x "${HOME}"/.local/wrap-bin/clang++