to tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126263
91177308-0d34-0410-b5e6-
96231b3b80d8
if not os.path.exists(execdir):
os.makedirs(execdir)
if not os.path.exists(execdir):
os.makedirs(execdir)
+ execenv = os.environ.copy()
+
for key, value in env.items():
for key, value in env.items():
- os.environ[key] = value
self.logger.debug("[" + prefix + "] " + "env " + str(env) + " "
+ " ".join(command));
self.logger.debug("[" + prefix + "] " + "env " + str(env) + " "
+ " ".join(command));
try:
proc = subprocess.Popen(command,
cwd=execdir,
try:
proc = subprocess.Popen(command,
cwd=execdir,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
except:
traceback.print_exc()
except:
traceback.print_exc()
- for key, value in env.items():
- os.environ.pop(key)
-
# Get a list of C++ include directories to pass to clang.
def get_includes(self):
# Assume we're building with g++ for now.
# Get a list of C++ include directories to pass to clang.
def get_includes(self):
# Assume we're building with g++ for now.