[Lldb-commits] [lldb] r230706 - [swig] Fix some typos in the build scripts.

Bruce Mitchener bruce.mitchener at gmail.com
Thu Feb 26 15:53:49 PST 2015


Author: brucem
Date: Thu Feb 26 17:53:49 2015
New Revision: 230706

URL: http://llvm.org/viewvc/llvm-project?rev=230706&view=rev
Log:
[swig] Fix some typos in the build scripts.

Reviewers: zturner, ki.stfu

Reviewed By: zturner, ki.stfu

Subscribers: ki.stfu, lldb-commits

Differential Revision: http://reviews.llvm.org/D7912

Modified:
    lldb/trunk/scripts/Python/buildSwigPython.py
    lldb/trunk/scripts/Python/finishSwigPythonLLDB.py

Modified: lldb/trunk/scripts/Python/buildSwigPython.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/buildSwigPython.py?rev=230706&r1=230705&r2=230706&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/buildSwigPython.py (original)
+++ lldb/trunk/scripts/Python/buildSwigPython.py Thu Feb 26 17:53:49 2015
@@ -436,7 +436,7 @@ Removes given file, ignoring error if it
 """
 def remove_ignore_enoent(filename):
 	try:
-		os.remove( strSwigOutputFile );
+		os.remove( filename );
 	except OSError as e:
 		import errno
 		if e.errno != errno.ENOENT:
@@ -702,7 +702,7 @@ def main( vDictArgs ):
 		remove_ignore_enoent( strSwigOutputFile )
 		open( strSwigOutputFile, 'w' ).close(); # Touch the file
 		if bDebug:
-			strMsg = strMsgLldbDisablePython;
+			strMsg = strMsgLldbDisablePythonEnv;
 		return (0, strMsg );
 		
 	# If this project is being built with LLDB_DISABLE_PYTHON defined,

Modified: lldb/trunk/scripts/Python/finishSwigPythonLLDB.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/finishSwigPythonLLDB.py?rev=230706&r1=230705&r2=230706&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/finishSwigPythonLLDB.py (original)
+++ lldb/trunk/scripts/Python/finishSwigPythonLLDB.py Thu Feb 26 17:53:49 2015
@@ -298,7 +298,7 @@ def make_symlink( vDictArgs, vstrFramewo
 		return (bOk, strErrMsg);
 	else:
 		# Resolve vstrSrcFile path relatively the build directory
-		stdBuildDir = "";
+		strBuildDir = "";
 		if eOSType == utilsOsType.EnumOsType.Windows:
 			# On a Windows platform the vstrFrameworkPythonDir looks like:
 			# llvm\\build\\Lib\\site-packages\\lldb





More information about the lldb-commits mailing list