Skip to content

Commit

Permalink
Fix env vars needed for devtoolset7 binaries
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#19780

Differential Revision: D15091963

Pulled By: pjh5

fbshipit-source-id: 2594395b2313d5c8a37db28965d99b0541a227e3
  • Loading branch information
pjh5 authored and facebook-github-bot committed Apr 26, 2019
1 parent c5cca65 commit e814c11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .circleci/verbatim-sources/linux-binary-build-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e814c11

Please sign in to comment.