mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
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:
committed by
Facebook Github Bot
parent
c5cca65351
commit
e814c11045
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user