rizsotto.mailinglist added inline comments. ================ Comment at: tools/scan-build-py/libear/ear.c:141 @@ +140,3 @@ + environ = *_NSGetEnviron(); +#endif + if (!initialized) ---------------- this call just sets up the `environ` variables for the `bear_capture_env_t` method, two lines down. that call saves the relevant variables... so, if before execv'ing somebody modify the variables we still have it saved. (by the way `Scons` is the tool which does this.) and when `call_execve` called it recovers from the saved environment.
there is a test against it. (tests/functional/cases/test_create_cdb.py:53) > The issue I am seeing with library-interposition on OS X [...] can you give me details what did you see? what was the test you were running? http://reviews.llvm.org/D9600 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits