Summary:
When I do this setup in a local Docker development environment,
I get the following error:
x86_64-linux-gnu-gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Somehow, gcc seems to get confused when it gets run from the wrong
directory. Best not to do it.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15078
Differential Revision:
D13432143
Pulled By: ezyang
fbshipit-source-id:
b18e15f493503a4c8205c85f92a214e49762a7bc
fi
# Setup wrapper scripts
- for compiler in cc c++ gcc g++ x86_64-linux-gnu-gcc; do
+ for compiler in cc c++ gcc g++; do
(
echo "#!/bin/sh"
echo "exec $SCCACHE $(which $compiler) \"\$@\""