Skip to content

Commit

Permalink
Stop inserting local shell environment into CppCompileAction.
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=112956748
  • Loading branch information
hanwen authored and lberki committed Jan 26, 2016
1 parent ec5c07a commit 6c6629e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ public ImmutableCollection<String> getDefines() {
* provided to the C++ compiler.
*/
public ImmutableMap<String, String> getEnvironment() {
Map<String, String> environment = new LinkedHashMap<>(configuration.getLocalShellEnvironment());
Map<String, String> environment = new LinkedHashMap<>();
// LANG could affect the way that GCC interprets characters in string
environment.put("LANG", "en_US");
if (configuration.isCodeCoverageEnabled()) {
environment.put("PWD", "/proc/self/cwd");
}
Expand Down

0 comments on commit 6c6629e

Please sign in to comment.