forked from OSchip/llvm-project
[CMake] Rename lldb-launcher to darwin-debug
Summary: This tool is only built on Darwin, and the name darwin-debug matches the Xcode project. We should have this in sync unless there is a good reason not to. Reviewers: zturner, tfiala, labath Subscribers: labath, mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D25745 llvm-svn: 285356
This commit is contained in:
parent
0b82459c6c
commit
91967bd301
|
@ -179,7 +179,6 @@ then
|
||||||
echo "Creating symlink for darwin-debug"
|
echo "Creating symlink for darwin-debug"
|
||||||
fi
|
fi
|
||||||
cd "${framework_python_dir}"
|
cd "${framework_python_dir}"
|
||||||
ln -s "../../../../bin/lldb-launcher" darwin-debug
|
|
||||||
else
|
else
|
||||||
if [ $Debug -eq 1 ]
|
if [ $Debug -eq 1 ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -451,39 +451,6 @@ def make_symlink_liblldb(
|
||||||
|
|
||||||
return (bOk, strErrMsg)
|
return (bOk, strErrMsg)
|
||||||
|
|
||||||
#++---------------------------------------------------------------------------
|
|
||||||
# Details: Make the symbolic link to the darwin-debug.
|
|
||||||
# Args: vDictArgs - (R) Program input parameters.
|
|
||||||
# vstrFrameworkPythonDir - (R) Python framework directory.
|
|
||||||
# vstrDarwinDebugFileName - (R) File name for darwin-debug.
|
|
||||||
# Returns: Bool - True = function success, False = failure.
|
|
||||||
# Str - Error description on task failure.
|
|
||||||
# Throws: None.
|
|
||||||
#--
|
|
||||||
|
|
||||||
|
|
||||||
def make_symlink_darwin_debug(
|
|
||||||
vDictArgs,
|
|
||||||
vstrFrameworkPythonDir,
|
|
||||||
vstrDarwinDebugFileName):
|
|
||||||
dbg = utilsDebug.CDebugFnVerbose(
|
|
||||||
"Python script make_symlink_darwin_debug()")
|
|
||||||
bOk = True
|
|
||||||
strErrMsg = ""
|
|
||||||
strTarget = vstrDarwinDebugFileName
|
|
||||||
strSrc = ""
|
|
||||||
|
|
||||||
bMakeFileCalled = "-m" in vDictArgs
|
|
||||||
if not bMakeFileCalled:
|
|
||||||
return (bOk, strErrMsg)
|
|
||||||
else:
|
|
||||||
strSrc = os.path.join("bin", "lldb-launcher")
|
|
||||||
|
|
||||||
bOk, strErrMsg = make_symlink(
|
|
||||||
vDictArgs, vstrFrameworkPythonDir, strSrc, strTarget)
|
|
||||||
|
|
||||||
return (bOk, strErrMsg)
|
|
||||||
|
|
||||||
#++---------------------------------------------------------------------------
|
#++---------------------------------------------------------------------------
|
||||||
# Details: Make the symbolic link to the lldb-argdumper.
|
# Details: Make the symbolic link to the lldb-argdumper.
|
||||||
# Args: vDictArgs - (R) Program input parameters.
|
# Args: vDictArgs - (R) Program input parameters.
|
||||||
|
@ -550,13 +517,6 @@ def create_symlinks(vDictArgs, vstrFrameworkPythonDir, vstrLldbLibDir):
|
||||||
strLibLldbFileName,
|
strLibLldbFileName,
|
||||||
vstrLldbLibDir)
|
vstrLldbLibDir)
|
||||||
|
|
||||||
# Make symlink for darwin-debug on Darwin
|
|
||||||
strDarwinDebugFileName = "darwin-debug"
|
|
||||||
if bOk and eOSType == utilsOsType.EnumOsType.Darwin:
|
|
||||||
bOk, strErrMsg = make_symlink_darwin_debug(vDictArgs,
|
|
||||||
vstrFrameworkPythonDir,
|
|
||||||
strDarwinDebugFileName)
|
|
||||||
|
|
||||||
# Make symlink for lldb-argdumper
|
# Make symlink for lldb-argdumper
|
||||||
strArgdumperFileName = "lldb-argdumper"
|
strArgdumperFileName = "lldb-argdumper"
|
||||||
if bOk:
|
if bOk:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
add_lldb_executable(lldb-launcher INCLUDE_IN_FRAMEWORK
|
add_lldb_executable(darwin-debug INCLUDE_IN_FRAMEWORK
|
||||||
darwin-debug.cpp
|
darwin-debug.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS lldb-launcher
|
install(TARGETS darwin-debug
|
||||||
RUNTIME DESTINATION bin)
|
RUNTIME DESTINATION bin)
|
||||||
|
|
Loading…
Reference in New Issue