summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/scripts/Python/buildSwigPython.py4
-rw-r--r--lldb/scripts/Python/finishSwigPythonLLDB.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/scripts/Python/buildSwigPython.py b/lldb/scripts/Python/buildSwigPython.py
index 6958a7c1705..36b0e7e396b 100644
--- a/lldb/scripts/Python/buildSwigPython.py
+++ b/lldb/scripts/Python/buildSwigPython.py
@@ -436,7 +436,7 @@ Removes given file, ignoring error if it doesn't exist.
"""
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,
diff --git a/lldb/scripts/Python/finishSwigPythonLLDB.py b/lldb/scripts/Python/finishSwigPythonLLDB.py
index a145d88aea6..98f774defa5 100644
--- a/lldb/scripts/Python/finishSwigPythonLLDB.py
+++ b/lldb/scripts/Python/finishSwigPythonLLDB.py
@@ -298,7 +298,7 @@ def make_symlink( vDictArgs, vstrFrameworkPythonDir, vstrSrcFile, vstrTargetFile
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
OpenPOWER on IntegriCloud