[Lldb-commits] [lldb] r130240 - /lldb/trunk/test/dotest.py
Johnny Chen
johnny.chen at apple.com
Tue Apr 26 13:45:00 PDT 2011
Author: johnny
Date: Tue Apr 26 15:45:00 2011
New Revision: 130240
URL: http://llvm.org/viewvc/llvm-project?rev=130240&view=rev
Log:
Simplify the parsing of ARCH and Compiler specs.
Modified:
lldb/trunk/test/dotest.py
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=130240&r1=130239&r2=130240&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Apr 26 15:45:00 2011
@@ -325,22 +325,14 @@
index += 1
if index >= len(sys.argv) or sys.argv[index].startswith('-'):
usage()
- archSpec = sys.argv[index]
- if archSpec.find('^') != -1:
- archs = archSpec.split('^')
- else:
- os.environ["ARCH"] = archSpec
+ archs = sys.argv[index].split('^')
index += 1
elif sys.argv[index].startswith('-C'):
# Increment by 1 to fetch the CC spec.
index += 1
if index >= len(sys.argv) or sys.argv[index].startswith('-'):
usage()
- ccSpec = sys.argv[index]
- if ccSpec.find('^') != -1:
- compilers = ccSpec.split('^')
- else:
- os.environ["CC"] = ccSpec
+ compilers = sys.argv[index].split('^')
index += 1
elif sys.argv[index].startswith('-D'):
dumpSysPath = True
More information about the lldb-commits
mailing list