[libc++] Properly handle environment variables with '=' in them

This commit is contained in:
Louis Dionne
2020-03-20 19:28:36 -04:00
parent ceae47143b
commit 0feaf22c8a

View File

@@ -12,9 +12,10 @@ It can perform code signing, forward arguments to the program, and return the
program's error code.
"""
import argparse
import os
import subprocess
import sys
import argparse
def main():
@@ -39,7 +40,7 @@ def main():
return rc
# Extract environment variables into a dictionary
env = {k : v for (k, v) in map(lambda s: s.split('='), args.env)}
env = {k : v for (k, v) in map(lambda s: s.split('=', 1), args.env)}
# Ensure the file dependencies exist
for file in args.dependencies: