Don't scrub PATH variable since Clang needs it

This commit is contained in:
Justine Tunney 2021-02-20 12:54:13 -08:00
parent e85aeda4ba
commit e345b42d78
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -115,6 +115,7 @@ struct Command command;
const char *const kSafeEnv[] = { const char *const kSafeEnv[] = {
"ADDR2LINE", // needed by GetAddr2linePath "ADDR2LINE", // needed by GetAddr2linePath
"MAKEFLAGS", // needed by IsRunningUnderMake "MAKEFLAGS", // needed by IsRunningUnderMake
"PATH", // needed by clang
"PWD", // just seems plain needed "PWD", // just seems plain needed
"TERM", // needed by IsTerminalInarticulate "TERM", // needed by IsTerminalInarticulate
"TMPDIR", // needed by compiler "TMPDIR", // needed by compiler
@ -433,7 +434,6 @@ int main(int argc, char *argv[]) {
*/ */
if (iscc) { if (iscc) {
if (isclang) { if (isclang) {
/* AddArg("-fno-integrated-as"); */
AddArg("-Wno-unused-command-line-argument"); AddArg("-Wno-unused-command-line-argument");
AddArg("-Wno-incompatible-pointer-types-discards-qualifiers"); AddArg("-Wno-incompatible-pointer-types-discards-qualifiers");
} }