1
0

920-specs_nonfatal_getenv.patch 472 B

123456789101112131415
  1. --- a/gcc/gcc.c
  2. +++ b/gcc/gcc.c
  3. @@ -9198,8 +9198,10 @@ getenv_spec_function (int argc, const ch
  4. value = varname;
  5. if (!value)
  6. - fatal_error (input_location,
  7. - "environment variable %qs not defined", varname);
  8. + {
  9. + warning (input_location, "environment variable %qs not defined", varname);
  10. + value = "";
  11. + }
  12. /* We have to escape every character of the environment variable so
  13. they are not interpreted as active spec characters. A