Fix env vars needed for devtoolset7 binaries

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/19780

Differential Revision: D15091963

Pulled By: pjh5

fbshipit-source-id: 2594395b2313d5c8a37db28965d99b0541a227e3
This commit is contained in:
Jesse Hellemn
2019-04-25 17:46:07 -07:00
committed by Facebook Github Bot
parent c5cca65351
commit e814c11045
2 changed files with 10 additions and 2 deletions

View File

@ -673,7 +673,11 @@ binary_linux_build: &binary_linux_build
set -ex
source /env
if [[ "$DESIRED_DEVTOOLSET" == 'devtoolset7' ]]; then
/builder/upgrade_gcc_abi.sh
source "/builder/upgrade_gcc_abi.sh"
# Env variables are not persisted into the next step
echo "export PATH=$PATH" > /env
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH" > /env
else
echo "Not upgrading gcc version"
fi

View File

@ -20,7 +20,11 @@ binary_linux_build: &binary_linux_build
set -ex
source /env
if [[ "$DESIRED_DEVTOOLSET" == 'devtoolset7' ]]; then
/builder/upgrade_gcc_abi.sh
source "/builder/upgrade_gcc_abi.sh"
# Env variables are not persisted into the next step
echo "export PATH=$PATH" > /env
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH" > /env
else
echo "Not upgrading gcc version"
fi