labath added a comment.

I think this is a good change, and is in line with what we have discussed 
previously. I have just one question about the exact variable interactions here.

Since the raison d'ĂȘtre of the new setting is to be able to "un-inherit" a 
particular environment variable, I'm wondering if it should only take effect if 
`inherit-env` is true (as otherwise you can achieve the same effect by deleting 
stuff from env-vars)? So instead of the current flow, the sequence would be:

  Environment env;
  if (inherit-env) {
    env = platform.GetEnvironment();
    for (var : unset-env-vars)
      env.erase(var);
  }
  for (kv : env-vars)
    env[kv.first] = kv.second;

I'm not insisting on anything, I just want to see which flow would be least 
surprising.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76470/new/

https://reviews.llvm.org/D76470



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to